Hello Sebastian,

Sunday, December 14, 2003, 8:56:15 AM, you wrote:

>   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?

Yes. We found out that calling __toString() automatically in any place in
the executor has unsolveable problems right now (ask Andi for details).


-- 
Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to