Files
pest/tests/Features/Skip.php
Pierre Grimaud d0d34c7872 Fix typos
2020-05-24 12:37:33 +02:00

30 lines
629 B
PHP

<?php
it('do not skips')
->skip(false)
->assertTrue(true);
it('skips with truthy')
->skip(1)
->assertTrue(false);
it('skips with truthy condition by default')
->skip()
->assertTrue(false);
it('skips with message')
->skip('skipped because bar')
->assertTrue(false);
it('skips with truthy closure condition')
->skip(function () { return '1'; })
->assertTrue(false);
it('do not skips with falsy closure condition')
->skip(function () { return false; })
->assertTrue(true);
it('skips with condition and message')
->skip(true, 'skipped because foo')
->assertTrue(false);