mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
chore: refacto
This commit is contained in:
@ -217,7 +217,7 @@ final class TestCaseFactory
|
||||
}
|
||||
|
||||
if (! $method->receivesArguments()) {
|
||||
if ($method->closure === null) {
|
||||
if (! $method->closure instanceof \Closure) {
|
||||
throw ShouldNotHappen::fromMessage('The test closure may not be empty.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user