Uses Collision ^7.0

This commit is contained in:
Nuno Maduro
2022-09-15 01:07:15 +01:00
parent eab944023c
commit 3ff95faaaa
47 changed files with 646 additions and 308 deletions

View File

@ -3,7 +3,8 @@
use PHPUnit\Framework\ExpectationFailedException;
test('pass', function () {
expect(function () {})->toBeCallable();
expect(function () {
})->toBeCallable();
expect(null)->not->toBeCallable();
});
@ -14,5 +15,7 @@ test('failures', function () {
})->throws(ExpectationFailedException::class);
test('not failures', function () {
expect(function () { return 42; })->not->toBeCallable();
expect(function () {
return 42;
})->not->toBeCallable();
})->throws(ExpectationFailedException::class);