test: adding tests for beforeEach and afterEach + empty tests for *All

This commit is contained in:
jordanbrauer
2021-04-06 19:26:42 -05:00
parent 99500d0cae
commit 53333b56ab
5 changed files with 82 additions and 7 deletions

View File

@ -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');