Uses Collision ^7.0

This commit is contained in:
Nuno Maduro
2022-09-15 01:07:15 +01:00
parent eab944023c
commit 3ff95faaaa
47 changed files with 646 additions and 308 deletions

View File

@ -21,11 +21,15 @@ it('skips with message')
->assertTrue(false);
it('skips with truthy closure condition')
->skip(function () { return '1'; })
->skip(function () {
return '1';
})
->assertTrue(false);
it('do not skips with falsy closure condition')
->skip(function () { return false; })
->skip(function () {
return false;
})
->assertTrue(true);
it('skips with condition and message')
@ -37,10 +41,16 @@ it('skips when skip after assertion')
->skip();
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);
it('can user higher order callables and skip')
->skip(function () { return $this->shouldSkip; })
->expect(function () { return $this->shouldSkip; })
->skip(function () {
return $this->shouldSkip;
})
->expect(function () {
return $this->shouldSkip;
})
->toBeFalse();