mirror of
https://github.com/pestphp/pest.git
synced 2026-03-05 23:37:22 +01:00
21 lines
496 B
PHP
21 lines
496 B
PHP
<?php
|
|
|
|
uses()->group('integration')->in('Visual');
|
|
|
|
$globalHook = (object) []; // NOTE: global test value container to be mutated and checked across files, as needed
|
|
|
|
uses()
|
|
->beforeEach(function () {
|
|
$this->baz = 0;
|
|
})
|
|
->beforeAll(function () use ($globalHook) {
|
|
$globalHook->beforeAll = 0;
|
|
})
|
|
->afterEach(function () {
|
|
$this->ith = 0;
|
|
})
|
|
->afterAll(function () use ($globalHook) {
|
|
$globalHook->afterAll = 0;
|
|
})
|
|
->in('Hooks');
|