feat(expect): add more methods

This commit is contained in:
ceceppa
2020-07-10 07:47:34 +01:00
parent 01b9bab55f
commit 42f0bd052e
9 changed files with 222 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<?php
use PHPUnit\Framework\ExpectationFailedException;
test('strict comparisons', function () {
expect(false)->toBeFalse();
});
test('failures', function () {
expect('')->toBeFalse();
})->throws(ExpectationFailedException::class);
test('not failures', function () {
expect(false)->not->toBe(false);
})->throws(ExpectationFailedException::class);