mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 22:47:27 +02: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);
|