Allows and in Higher Order Expectations.

This commit is contained in:
luke
2021-06-24 21:31:12 +01:00
parent 621718d4b1
commit ff527baa1d
2 changed files with 21 additions and 0 deletions

View File

@ -63,6 +63,16 @@ final class HigherOrderExpectation
return $this;
}
/**
* Creates a new expectation.
*
* @param mixed $value
*/
public function and($value): HigherOrderExpectation
{
return new self($this->expect($value), $value);
}
/**
* Dynamically calls methods on the class with the given arguments.
*