https://src.bluestatic.org
/
viewsvn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a68f8be
)
Remove the CLI printer
author
Robert Sesek <rsesek@bluestatic.org>
Mon, 24 Apr 2006 06:48:00 +0000
(06:48 +0000)
committer
Robert Sesek <rsesek@bluestatic.org>
Mon, 24 Apr 2006 06:48:00 +0000
(06:48 +0000)
docs/phpunit/AllTests.php
patch
|
blob
|
history
diff --git
a/docs/phpunit/AllTests.php
b/docs/phpunit/AllTests.php
index 9429ad9cd1494cfae6ab977ec85c413754ad1bfd..3c552ecc973a9d2e1c19058aa1609d6b0fb9082a 100644
(file)
--- a/
docs/phpunit/AllTests.php
+++ b/
docs/phpunit/AllTests.php
@@
-1,18
+1,24
@@
<?php
// load the test harness
<?php
// load the test harness
+require_once('PHPUnit2/Framework/TestResult.php');
require_once('PHPUnit2/Framework/TestSuite.php');
require_once('PHPUnit2/Framework/TestSuite.php');
-require_once('PHPUnit2/TextUI/TestRunner.php');
require_once('PHPUnit2/Framework/Warning.php');
require_once('PHPUnit2/Framework/IncompleteTestError.php');
require_once('PHPUnit2/Framework/Warning.php');
require_once('PHPUnit2/Framework/IncompleteTestError.php');
+require_once('/Server/htdocs/tools/ISI_PHPUnit2_Output_HTML_Listener.php');
+require_once('PHPUnit2/TextUI/ResultPrinter.php');
+
// setup the new test suite
// setup the new test suite
+$result = new PHPUnit2_Framework_TestResult;
+$result->addListener(new ISI_PHPUnit2_Output_HTML_Listener);
$suite = new PHPUnit2_Framework_TestSuite;
// load tests
$suite->addTestFile('ApplicationControllerTest.php');
$suite = new PHPUnit2_Framework_TestSuite;
// load tests
$suite->addTestFile('ApplicationControllerTest.php');
+$suite->addTestFile('ArrayTest.php');
// run all the tests
// run all the tests
-
PHPUnit2_TextUI_TestRunner::run($suite
);
+
$suite->run($result
);
?>
\ No newline at end of file
?>
\ No newline at end of file