public static function assertExactError($document, array $error, bool $strict = true, string $message = ''): void
    {
        self::assertExactList($document, [$error], '/errors', $strict, $message);
    }
public static function assertExactError($document, array $error, bool $strict = true, string $message = ''): void
    {
        self::assertExactList($document, [$error], '/errors', $strict, $message);
    }
public static function assertExactError ( $ document , array $ error , bool $ strict = true , string $ message = '' ) : void { self :: assertExactList ( $ document , [ $ error ] , '/errors' , $ strict , $ message ) ; }
Assert the document contains a single error that exactly matches the supplied error.

@param $document
@param array $error
@param bool $strict
@param string $message
@return void
Assert the document contains a single error that exactly matches the supplied error .