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

@ -113,7 +113,7 @@ final class HigherOrderExpectation
*/
private function expectationHasMethod(string $name): bool
{
return method_exists($this->original, $name) || $this->original::hasExtend($name);
return method_exists($this->original, $name) || $this->original::hasMethod($name) || $this->original::hasExtend($name);
}
/**