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.1')->toBeString();
expect(1.1)->not->toBeString();
});
test('failures', function () {
expect(null)->toBeString();
})->throws(ExpectationFailedException::class);
test('not failures', function () {
expect('42')->not->toBeString();
})->throws(ExpectationFailedException::class);