mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
test: adding tests for beforeEach and afterEach + empty tests for *All
This commit is contained in:
@ -1,6 +1,19 @@
|
||||
<?php
|
||||
|
||||
uses()->group('integration')->in('Visual');
|
||||
uses()->beforeEach(function (): void {
|
||||
$this->baz = 1;
|
||||
})->in('Hooks');
|
||||
|
||||
uses()
|
||||
->beforeEach(function () {
|
||||
$this->baz = 0;
|
||||
})
|
||||
// ->beforeAll(function () {
|
||||
// dump(0);
|
||||
// })
|
||||
->afterEach(function () {
|
||||
$this->ith = 0;
|
||||
})
|
||||
// ->afterAll(function () {
|
||||
// dump(0);
|
||||
// })
|
||||
->in('Hooks');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user