From 6ce678d1c276b71c89fa91ab07a0368dd248ae8f Mon Sep 17 00:00:00 2001 From: luke Date: Thu, 8 Jul 2021 17:52:56 +0100 Subject: [PATCH] Adds an extra test to ensure that skipping takes place before higher order callables. --- tests/Features/Skip.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Features/Skip.php b/tests/Features/Skip.php index 9102673b..f5d867ca 100644 --- a/tests/Features/Skip.php +++ b/tests/Features/Skip.php @@ -39,3 +39,8 @@ it('skips when skip after assertion') it('can use something in the test case as a condition') ->skip(function () { return $this->shouldSkip; }, 'This test was skipped') ->assertTrue(false); + +it('can user higher order callables and skip') + ->skip(function () { return $this->shouldSkip; }) + ->expect(function () { return $this->shouldSkip; }) + ->toBeFalse();