Files
pest/tests/Features/Fail.php
T
2026-07-18 01:10:01 +01:00

12 lines
306 B
PHP

<?php
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');