feat: move Expectations API out of external plugin

This commit is contained in:
Owen Voke
2021-06-15 17:07:11 +01:00
parent a10b29a8da
commit c07cd8c252
63 changed files with 2617 additions and 2 deletions

View File

@ -0,0 +1,16 @@
<?php
use PHPUnit\Framework\ExpectationFailedException;
test('pass', function () {
expect([1, 2, 3])->toBeArray();
expect('1, 2, 3')->not->toBeArray();
});
test('failures', function () {
expect(null)->toBeArray();
})->throws(ExpectationFailedException::class);
test('not failures', function () {
expect(['a', 'b', 'c'])->not->toBeArray();
})->throws(ExpectationFailedException::class);