mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 10:47:25 +01:00
Adds an extra test to ensure that skipping takes place before higher order callables.
This commit is contained in:
@ -39,3 +39,8 @@ it('skips when skip after assertion')
|
|||||||
it('can use something in the test case as a condition')
|
it('can use something in the test case as a condition')
|
||||||
->skip(function () { return $this->shouldSkip; }, 'This test was skipped')
|
->skip(function () { return $this->shouldSkip; }, 'This test was skipped')
|
||||||
->assertTrue(false);
|
->assertTrue(false);
|
||||||
|
|
||||||
|
it('can user higher order callables and skip')
|
||||||
|
->skip(function () { return $this->shouldSkip; })
|
||||||
|
->expect(function () { return $this->shouldSkip; })
|
||||||
|
->toBeFalse();
|
||||||
|
|||||||
Reference in New Issue
Block a user