Last change
on this file since 298 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
992 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | error_reporting(error_reporting() & ~2048 & ~8192); // Make sure E_STRICT and E_DEPRECATED are disabled |
---|
4 | |
---|
5 | require_once('simpletest/unit_tester.php'); |
---|
6 | require_once('simpletest/reporter.php'); |
---|
7 | |
---|
8 | $core = new GroupTest('Core'); |
---|
9 | |
---|
10 | require_once('../lib/tonic.php'); |
---|
11 | |
---|
12 | $core->addTestFile('request.php'); |
---|
13 | $core->addTestFile('resource.php'); |
---|
14 | $core->addTestFile('response.php'); |
---|
15 | $core->addTestFile('filesystem.php'); |
---|
16 | $core->addTestFile('filesystemcollection.php'); |
---|
17 | |
---|
18 | $test = new GroupTest('Tonic'); |
---|
19 | $test->addTestCase($core); |
---|
20 | |
---|
21 | //* |
---|
22 | @include_once 'PHP/CodeCoverage.php'; |
---|
23 | if (class_exists('PHP_CodeCoverage')) { |
---|
24 | $coverage = new PHP_CodeCoverage; |
---|
25 | $coverage->start('Tonic'); |
---|
26 | } |
---|
27 | //*/ |
---|
28 | |
---|
29 | if (TextReporter::inCli()) { |
---|
30 | $test->run(new TextReporter()); |
---|
31 | } else { |
---|
32 | $test->run(new HtmlReporter()); |
---|
33 | } |
---|
34 | |
---|
35 | if (isset($coverage)) { |
---|
36 | $coverage->stop(); |
---|
37 | |
---|
38 | require_once 'PHP/CodeCoverage/Report/HTML.php'; |
---|
39 | |
---|
40 | $writer = new PHP_CodeCoverage_Report_HTML; |
---|
41 | $writer->process($coverage, 'report'); |
---|
42 | } |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.