Adds an extra test to ensure that skipping takes place before higher order callables.

This commit is contained in:
luke
2021-07-08 17:52:56 +01:00
parent 5049b996db
commit 6ce678d1c2

View File

@ -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();