mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore: refactor TestClosureMustNotBeStatic
This commit is contained in:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user