mirror of
https://github.com/pestphp/pest.git
synced 2026-04-22 06:57:28 +02:00
add toBeIn
This commit is contained in:
11
tests/Features/Expect/toBeIn.php
Normal file
11
tests/Features/Expect/toBeIn.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use PHPUnit\Framework\ExpectationFailedException;
|
||||
|
||||
test('passes', function () {
|
||||
expect('a')->toBeIn(['a', 'b', 'c']);
|
||||
});
|
||||
|
||||
test('failures', function () {
|
||||
expect('d')->toBeIn(['a', 'b', 'c']);
|
||||
})->throws(ExpectationFailedException::class);
|
||||
Reference in New Issue
Block a user