Closed gavinlove closed 11 years ago
Does changing Line 110
from:
strpos($frame['file'], $prefix) !== 0 &&
to
($prefix == false || strpos($frame['file'], $prefix) !== 0) &&
fix the issue for you?
I'm not really sure if PHPUnit should support that function overloading or if thats is something that has to be fixed in mb but anyways: Thanks a bunch for taking the time to test with master and reporting the issue :)
That fixes the problem.
In the latest master version of phpunit if a test fails and tries to generate a stack trace when mbstring.func_overload is true rather than getting the stack trace for your error you get a stack trace for a warning within phpunit.
The problem is that the mb_strpos is stricter than strpos and passing false to it generates a warning.