Files
pest/tests/Features/Fail.php
2023-12-28 10:31:39 +00:00

12 lines
294 B
PHP

<?php
use PHPUnit\Framework\AssertionFailedError;
it('may fail', function () {
$this->fail();
})->throws(AssertionFailedError::class);
it('may fail with the given message', function () {
$this->fail('this is a failure');
})->throws(AssertionFailedError::class, 'this is a failure');