// Written by Fred Yankowski <fred@ontosys.com>\r
// OntoSys, Inc <http://www.OntoSys.com>\r
//\r
-// $Id: phpunit.php 880 2009-03-07 02:55:57Z quix0r $\r
+// $Id: phpunit.php,v 1.1 2002/03/30 19:32:17 bmatzelle Exp $\r
\r
// Copyright (c) 2000 Fred Yankowski\r
\r
$testResult = $this->_createResult();\r
$this->fResult = $testResult;\r
$testResult->run(&$this);\r
- $this->fResult = '0';\r
+ $this->fResult = 0;\r
return $testResult;\r
}\r
\r
function countTestCases() {\r
/* Number of TestCases comprising this TestSuite (including those\r
in any constituent TestSuites) */\r
- $count = '0';\r
+ $count = 0;\r
reset($fTests);\r
while (list($na, $test_case) = each($this->fTests)) {\r
$count += $test_case->countTestCases();\r
class TestResult {\r
/* Collect the results of running a set of TestCases. */\r
var $fFailures = array();\r
- var $fRunTests = '0';\r
+ var $fRunTests = 0;\r
var $fStop = false;\r
\r
function TestResult() { }\r
$nFailures = $this->countFailures();\r
printf("<p>%s test%s run<br>", $nRun, ($nRun == 1) ? '' : 's');\r
printf("%s failure%s.<br>\n", $nFailures, ($nFailures == 1) ? '' : 's');\r
- if ($nFailures == '0')\r
+ if ($nFailures == 0)\r
return;\r
\r
print("<ol>\n");\r