mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
25 lines
411 B
PHP
25 lines
411 B
PHP
<?php
|
|
|
|
uses()->afterEach(function () {
|
|
expect($this)
|
|
->toHaveProperty('ith')
|
|
->and($this->ith)
|
|
->toBe(0);
|
|
|
|
$this->ith = 1;
|
|
});
|
|
|
|
afterEach(function () {
|
|
expect($this)
|
|
->toHaveProperty('ith')
|
|
->and($this->ith)
|
|
->toBe(1);
|
|
});
|
|
|
|
test('global afterEach execution order', function () {
|
|
expect($this)
|
|
->not()
|
|
->toHaveProperty('ith');
|
|
});
|
|
|