toBeFloat(); expect(1)->not->toBeFloat(); }); test('failures', function () { expect(42)->toBeFloat(); })->throws(ExpectationFailedException::class); test('failures with custom message', function () { expect(42)->toBeFloat('oh no!'); })->throws(ExpectationFailedException::class, 'oh no!'); test('not failures', function () { expect(log(3))->not->toBeFloat(); })->throws(ExpectationFailedException::class);