mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 17:27:22 +01:00
revert previous solution and invert chain and proxy calls in TestCaseFactory.php
This commit is contained in:
@ -140,16 +140,12 @@ final class TestCaseFactory
|
||||
$proxies = $this->proxies;
|
||||
$factoryTest = $this->test;
|
||||
|
||||
if ($chains->hasMessage('markTestSkipped')) {
|
||||
$proxies->forgetMessage('expectException');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
$test = function () use ($chains, $proxies, $factoryTest) {
|
||||
$proxies->proxy($this);
|
||||
$chains->chain($this);
|
||||
$proxies->proxy($this);
|
||||
|
||||
/* @phpstan-ignore-next-line */
|
||||
return call_user_func(Closure::bind($factoryTest, $this, get_class($this)), ...func_get_args());
|
||||
|
||||
Reference in New Issue
Block a user