Re: __toString()
| From: | Marcus Boerger | Date: | Sun, 14 Dec 2003 12:46:49 +0000 |
| Subject: | Re: __toString() | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-6441@lists.php.net to get a copy of this message | ||
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:helly@php.net