feat: adds fails

This commit is contained in:
Nuno Maduro
2023-12-28 10:31:39 +00:00
parent e00aba539a
commit f83d758d4b
3 changed files with 31 additions and 0 deletions

11
tests/Features/Fails.php Normal file
View File

@ -0,0 +1,11 @@
<?php
use PHPUnit\Framework\AssertionFailedError;
it('may fail', function () {
$this->fail();
})->fails();
it('may fail with the given message', function () {
$this->fail('this is a failure');
})->fails('this is a failure');