toBeInfinite(); expect(log(1))->not->toBeInfinite(); }); test('failures', function () { expect(asin(2))->toBeInfinite(); })->throws(ExpectationFailedException::class); test('failures with custom message', function () { expect(asin(2))->toBeInfinite('oh no!'); })->throws(ExpectationFailedException::class, 'oh no!'); test('not failures', function () { expect(INF)->not->toBeInfinite(); })->throws(ExpectationFailedException::class);