mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
add toBeIn
This commit is contained in:
@ -371,6 +371,16 @@ final class Expectation
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that the value is one of the given values.
|
||||
*/
|
||||
public function toBeIn(array $possibleValues): Expectation
|
||||
{
|
||||
Assert::assertContains($this->value, $possibleValues);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that the value is infinite.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user