feat(describe): snapshots

This commit is contained in:
Nuno Maduro
2023-05-26 20:18:52 +01:00
parent 0ae0887665
commit bc951787d3
4 changed files with 12 additions and 7 deletions

View File

@ -29,11 +29,9 @@ final class BeforeEachRepository
$beforeEachTestCall = ChainableClosure::unbound($fromBeforeEachTestCall, $beforeEachTestCall);
$beforeEachTestCase = ChainableClosure::bound($fromBeforeEachTestCase, $beforeEachTestCase)->bindTo($beforeEachCall, $beforeEachCall::class);
assert($beforeEachTestCase instanceof Closure);
}
assert($beforeEachTestCall instanceof Closure);
assert($beforeEachTestCase instanceof Closure);
$this->state[$filename] = [$beforeEachTestCall, $beforeEachTestCase];
}