mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feat(expect): makes expect work with pending higher order tests
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use function PHPUnit\Framework\assertFalse;
|
||||
|
||||
$foo = new stdClass();
|
||||
$foo->beforeAll = false;
|
||||
$foo->beforeEach = false;
|
||||
@ -20,8 +22,8 @@ afterAll(function () {
|
||||
});
|
||||
|
||||
register_shutdown_function(function () use ($foo) {
|
||||
expect($foo->beforeAll)->toBeFalse();
|
||||
expect($foo->beforeEach)->toBeFalse();
|
||||
expect($foo->afterEach)->toBeFalse();
|
||||
expect($foo->afterAll)->toBeFalse();
|
||||
assertFalse($foo->beforeAll);
|
||||
assertFalse($foo->beforeEach);
|
||||
assertFalse($foo->afterEach);
|
||||
assertFalse($foo->afterAll);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user