toBeIn(['a', 'b', 'c']); expect('d')->not->toBeIn(['a', 'b', 'c']); }); test('failures', function () { expect('d')->toBeIn(['a', 'b', 'c']); })->throws(ExpectationFailedException::class); test('failures with custom message', function () { expect('d')->toBeIn(['a', 'b', 'c'], 'oh no!'); })->throws(ExpectationFailedException::class, 'oh no!'); test('not failures', function () { expect('a')->not->toBeIn(['a', 'b', 'c']); })->throws(ExpectationFailedException::class);