feat(expect): removes ignore cases related assertions

This commit is contained in:
Nuno Maduro
2020-07-14 23:21:51 +02:00
parent ab017e17e2
commit 32ef377284
3 changed files with 4 additions and 33 deletions

View File

@ -3,13 +3,13 @@
use PHPUnit\Framework\ExpectationFailedException;
test('pass', function () {
expect(1.0)->toBeEqualWithDelta(1.3, .4);
expect(1.0)->toEqualWithDelta(1.3, .4);
});
test('failures', function () {
expect(1.0)->toBeEqualWithDelta(1.5, .1);
expect(1.0)->toEqualWithDelta(1.5, .1);
})->throws(ExpectationFailedException::class);
test('not failures', function () {
expect(1.0)->not->toBeEqualWithDelta(1.6, .7);
expect(1.0)->not->toEqualWithDelta(1.6, .7);
})->throws(ExpectationFailedException::class);