mirror of
https://github.com/pestphp/pest.git
synced 2026-07-21 17:10:03 +02:00
feat: adds fails
This commit is contained in:
@@ -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');
|
||||
Reference in New Issue
Block a user