Menu

[r123]: / trunk / testing / unit-tests / test.csst.php  Maximize  Restore  History

Download this file

22 lines (19 with data), 660 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
require_once 'class.csstidy_csst.php';
/**
* Performs the csst tests in csst/ folder
*/
class csstidy_test_csst extends csstidy_harness
{
function testAll() {
$files = globr(dirname(__FILE__) . '/csst', '*.csst');
foreach ($files as $filename) {
$expectation = new csstidy_csst();
$result = $this->assert($expectation, $filename, '%s');
// this is necessary because SimpleTest doesn't support
// HTML messages; this probably should be in the reporter.
// This is *not* compatible with XmlReporter
if (!$result) echo $expectation->render();
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.