mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 08:17:22 +01:00
12 lines
254 B
PHP
12 lines
254 B
PHP
<?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);
|