Moves Laravel stuff to plugin

This commit is contained in:
Nuno Maduro
2022-09-18 15:59:29 +01:00
parent 06ef57060f
commit fa1145dced
8 changed files with 3 additions and 323 deletions

View File

@ -5,9 +5,10 @@ use PHPUnit\Framework\ExpectationFailedException;
it('passes', function ($value) {
expect($value)->toHaveLength(9);
})->with([
'Fortaleza', 'Sollefteå', 'Ιεράπετρα',
'Fortaleza',
'Sollefteå',
'Ιεράπετρα',
(object) [1, 2, 3, 4, 5, 6, 7, 8, 9],
collect([1, 2, 3, 4, 5, 6, 7, 8, 9]),
]);
it('passes with array', function () {

View File

@ -1,16 +0,0 @@
<?php
use Illuminate\Support\Traits\Macroable;
use PHPUnit\Framework\TestCase;
uses(Macroable::class);
beforeEach()->macro('bar', function () {
expect($this)->toBeInstanceOf(TestCase::class);
});
it('can call chained macro method')->bar();
it('will throw exception from call if no macro exists')
->throws(BadMethodCallException::class)
->foo();