mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17:23 +01:00
Allows and in Higher Order Expectations.
This commit is contained in:
@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user