diff --git a/tests/Features/HigherOrderTests.php b/tests/Features/HigherOrderTests.php index 5505c8a0..e2ff0686 100644 --- a/tests/Features/HigherOrderTests.php +++ b/tests/Features/HigherOrderTests.php @@ -37,10 +37,10 @@ it('can pass datasets into the tap callable') ->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() - ->with('numbers.closure.wrapped'); + ->toBeInt(); afterEach()->assertTrue(true);