unread
The following code from PHPUnit stopped working after the recent changes
to __toString()
protected function printDefectTrace(PHPUnit_Framework_TestFailure
$defect) {
print $defect->thrownException() . "\n";
print PHPUnit_Runner_BaseTestRunner::getFilteredStack(
$defect->thrownException()
);
}
The
print $defect->thrownException() . "\n";
line worked fine before and printed the result of
$defect->thrownException()->__toString()
Is this the intended behaviour?
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/