Remove the CLI printer
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 24 Apr 2006 06:48:00 +0000 (06:48 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 24 Apr 2006 06:48:00 +0000 (06:48 +0000)
docs/phpunit/AllTests.php

index 9429ad9cd1494cfae6ab977ec85c413754ad1bfd..3c552ecc973a9d2e1c19058aa1609d6b0fb9082a 100644 (file)
@@ -1,18 +1,24 @@
 <?php
 
 // load the test harness
+require_once('PHPUnit2/Framework/TestResult.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('/Server/htdocs/tools/ISI_PHPUnit2_Output_HTML_Listener.php');
+require_once('PHPUnit2/TextUI/ResultPrinter.php');
+
 // 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->addTestFile('ArrayTest.php');
 
 // run all the tests
-PHPUnit2_TextUI_TestRunner::run($suite);
+$suite->run($result);
 
 ?>
\ No newline at end of file