fix tests

This commit is contained in:
freek
2021-07-28 01:00:19 +02:00
parent 2dd77001b7
commit 671f3df115
2 changed files with 8 additions and 3 deletions

View File

@ -374,11 +374,11 @@ final class Expectation
/**
* Asserts that the value is one of the given values.
*
* @param array<int, int|string> $possibleValues
* @param iterable<int|string, mixed> $values
*/
public function toBeIn(array $possibleValues): Expectation
public function toBeIn(iterable $values): Expectation
{
Assert::assertContains($this->value, $possibleValues);
Assert::assertContains($this->value, $values);
return $this;
}