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

@ -4,8 +4,13 @@ use PHPUnit\Framework\ExpectationFailedException;
test('passes', function () {
expect('a')->toBeIn(['a', 'b', 'c']);
expect('d')->not->toBeIn(['a', 'b', 'c']);
});
test('failures', function () {
expect('d')->toBeIn(['a', 'b', 'c']);
})->throws(ExpectationFailedException::class);
test('not failures', function () {
expect('a')->not->toBeIn(['a', 'b', 'c']);
})->throws(ExpectationFailedException::class);