__toString()

From: Date: Sun, 14 Dec 2003 07:56:15 +0000
Subject: __toString()
Groups: php.internals 
Request: Send a blank email to internals+get-6439@lists.php.net to get a copy of this message
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/

« previous php.internals (#6439) next »