src/AssertionRecorder.php
public function createFailure(string $description)
    {
        $exception = new AssertionException($description);

        $suiteClass = $this->suiteClass;
        $suiteClass::current()->assert([
            'handler' => function () use ($exception) {
                throw $exception;
            },
            'type' => AssertionException::class,
        ]);
    }
public function createFailure(string $description)
    {
        $exception = new AssertionException($description);

        $suiteClass = $this->suiteClass;
        $suiteClass::current()->assert([
            'handler' => function () use ($exception) {
                throw $exception;
            },
            'type' => AssertionException::class,
        ]);
    }
public function createFailure ( string $ description ) { $ exception = new AssertionException ( $ description ) ; $ suiteClass = $ this -> suiteClass ; $ suiteClass :: current ( ) -> assert ( [ 'handler' => function ( ) use ( $ exception ) { throw $ exception ; } , 'type' => AssertionException :: class , ] ) ; }
Create a new assertion failure exception.

@param string $description The failure description.

@throws AssertionException The assertion failure.
Create a new assertion failure exception .