3b007aca2ca83f6de915ebf1425c83e36d9eb288
[ptitvelo/web/www.git] / www / plugins-dist / compresseur / lib / csstidy / testing / unit-tests / test.csst.php
1 <?php
2
3 require_once 'class.csstidy_csst.php';
4
5 /**
6 * Performs the csst tests in csst/ folder
7 */
8 class csstidy_test_csst extends csstidy_harness
9 {
10 function testAll() {
11 $files = globr(dirname(__FILE__) . '/csst', '*.csst');
12 foreach ($files as $filename) {
13 $expectation = new csstidy_csst();
14 $result = $this->assert($expectation, $filename, '%s');
15 // this is necessary because SimpleTest doesn't support
16 // HTML messages; this probably should be in the reporter.
17 // This is *not* compatible with XmlReporter
18 if (!$result) echo $expectation->render();
19 }
20 }
21 }