PHPUnit. No warning when test class doesn't exist.
| From: | Charlie Killian | Date: | Wed, 20 Nov 2002 17:47:40 +0000 |
| Subject: | PHPUnit. No warning when test class doesn't exist. | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-10958@lists.php.net to get a copy of this message | ||
If a *nonexistent* class name is passed to PHPUnit_TestSuite no warning is
generated.
For example:
// Nonexistent class 'TestCase'.
$suite =& new PHPUnit_TestSuite('TestCase');
$result =& PHPUnit::run($suite);
print($result->toString()); // prints nothing.
It would be helpful if PHPUnit_TestSuite::addTestSuite($testClass) generated
a warning for this condition. It is a little disorienting when you run the
test expecting a pass or fail but get nothing.
Cheers,
Charlie