mirror of
https://github.com/pestphp/pest.git
synced 2026-03-05 23:37:22 +01:00
12 lines
294 B
PHP
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');
|