Skip to content

Commit

Permalink
Adds an extra test to ensure that skipping takes place before higher …
Browse files Browse the repository at this point in the history
…order callables.
  • Loading branch information
lukeraymonddowning committed Jul 8, 2021
1 parent 5049b99 commit 6ce678d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Features/Skip.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@
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();

0 comments on commit 6ce678d

Please sign in to comment.