Fixes bug with json method call in Higher Order Expectations.

This commit is contained in:
Luke Downing
2022-01-21 16:35:21 +00:00
parent 1b7f1dc5b3
commit 2831629f1b
3 changed files with 18 additions and 1 deletions

View File

@ -77,6 +77,11 @@ final class HigherOrderExpectation
return $this->expect($value);
}
public function json(): HigherOrderExpectation
{
return new self($this->original, $this->expectation->json()->value);
}
/**
* Dynamically calls methods on the class with the given arguments.
*