Files
pest/tests/Features/Fail.php
T
nuno maduro cd0e921158 chore: style
2026-07-19 00:42:29 +01:00

14 lines
332 B
PHP

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