moved old Expectation in CoreExpectation.php and made Expectation.php a decorator for it

This commit is contained in:
Fabio Ivona
2021-10-07 22:59:46 +02:00
parent e853792a59
commit d802e88148
5 changed files with 775 additions and 728 deletions

View File

@ -144,8 +144,8 @@ final class TestCaseFactory
* @return mixed
*/
$test = function () use ($chains, $proxies, $factoryTest) {
$chains->chain($this);
$proxies->proxy($this);
$chains->chain($this);
/* @phpstan-ignore-next-line */
return call_user_func(Closure::bind($factoryTest, $this, get_class($this)), ...func_get_args());