mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 14:37:29 +02:00
More tests
This commit is contained in:
@ -7,7 +7,11 @@ beforeEach(function () use ($state) {
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
$this->state->bar = 2;
|
||||
$this->state->bar = 1;
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
unset($this->state->bar);
|
||||
});
|
||||
|
||||
it('does not get executed before the test', function () {
|
||||
@ -18,3 +22,7 @@ it('gets executed after the test', function () {
|
||||
expect($this->state)->toHaveProperty('bar');
|
||||
expect($this->state->bar)->toBe(2);
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
$this->state->bar = 2;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user