mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
Adds another test
This commit is contained in:
@ -36,4 +36,11 @@ it('can pass datasets into the tap callable')
|
|||||||
->with([[1, 2, 3]])
|
->with([[1, 2, 3]])
|
||||||
->tap(function (...$numbers) { expect($numbers)->toBe([1, 2, 3]); });
|
->tap(function (...$numbers) { expect($numbers)->toBe([1, 2, 3]); });
|
||||||
|
|
||||||
|
it('can pass shared datasets into callables')
|
||||||
|
->with('numbers.closure.wrapped')
|
||||||
|
->expect(function ($value) { return $value; })
|
||||||
|
->and(function ($value) { return $value; })
|
||||||
|
->tap(function ($value) { expect($value)->toBeInt(); })
|
||||||
|
->toBeInt();
|
||||||
|
|
||||||
afterEach()->assertTrue(true);
|
afterEach()->assertTrue(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user