toEqualWithDelta(1.3, .4); }); test('failures with custom message', function () { expect(1.0)->toEqualWithDelta(1.5, .1, 'oh no!'); })->throws(ExpectationFailedException::class, 'oh no!'); test('not failures', function () { expect(1.0)->not->toEqualWithDelta(1.6, .7); })->throws(ExpectationFailedException::class);