mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17:23 +01:00
moved old Expectation in CoreExpectation.php and made Expectation.php a decorator for it
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user