chore: refacto

This commit is contained in:
Nuno Maduro
2023-04-08 12:23:10 +01:00
parent f73e6aebcb
commit 81cdb7a300
6 changed files with 10 additions and 10 deletions

View File

@ -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.');
}