You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to diagnose an issue with my tests I have run Xdebug. It keeps stopping on an exception that is thrown in PHPUnit\Util\Annotation\Registry::forMethod() because forMethod is passed an empty string and ReflectionMethod() can't find MyClassName::()
Current behavior
This throws a lot of exceptions that are caught. We can improve that.
How to reproduce
Call PHPUnit\Util\Test::parseTestMethodAnnotations() without a second argument
Expected behavior
Don't allow an empty string to be passed to PHPUnit\Util\Annotation\Registry::forMethod(). if ($methodName !== null) { on line 308 should be if (!empty($methodName)) {.
The text was updated successfully, but these errors were encountered:
Summary
While trying to diagnose an issue with my tests I have run Xdebug. It keeps stopping on an exception that is thrown in
PHPUnit\Util\Annotation\Registry::forMethod()
because forMethod is passed an empty string and ReflectionMethod() can't findMyClassName::()
Current behavior
This throws a lot of exceptions that are caught. We can improve that.
How to reproduce
Call
PHPUnit\Util\Test::parseTestMethodAnnotations()
without a second argumentExpected behavior
Don't allow an empty string to be passed to
PHPUnit\Util\Annotation\Registry::forMethod()
.if ($methodName !== null) {
on line 308 should beif (!empty($methodName)) {
.The text was updated successfully, but these errors were encountered: