mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +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')
|
||||
->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();
|
||||
|
||||
Reference in New Issue
Block a user