chore: refactor TestClosureMustNotBeStatic

This commit is contained in:
Nuno Maduro
2024-08-22 20:59:25 +01:00
parent 748beb17d5
commit 86d2191cae
3 changed files with 19 additions and 5 deletions

View File

@ -19,9 +19,7 @@ it('does not allow to add the same test description twice', function () {
it('does not allow static closures', function () {
$testSuite = new TestSuite(getcwd(), 'tests');
$method = new TestCaseMethodFactory('foo', 'bar', static function () {
});
$method = new TestCaseMethodFactory('foo', 'bar', static function () {});
$testSuite->tests->set($method);
})->throws(