BUGFIX: Fixed test runner's handling of errors

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60410 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-08-11 06:10:59 +00:00
parent 4c4c20919f
commit 9b7bf6a187

View File

@ -121,6 +121,10 @@ class TestRunner extends Controller {
class_exists($className);
$suite->addTest(new PHPUnit_Framework_TestSuite($className));
}
// Remove the error handler so that PHPUnit can add its own
restore_error_handler();
/*, array("reportDirectory" => "/Users/sminnee/phpunit-report")*/
$reporter = new SapphireTestReporter();
$results = new PHPUnit_Framework_TestResult();