src/Assert.php
public static function assertErrors($document, array $errors, bool $strict = true, string $message = ''): void
    {
        self::assertList($document, $errors, '/errors', $strict, $message);
    }
public static function assertErrors($document, array $errors, bool $strict = true, string $message = ''): void
    {
        self::assertList($document, $errors, '/errors', $strict, $message);
    }
Assert the document contains the supplied errors.

This does not assert the order of the errors, as the error order does not have any significance.

@param $document
@param array $errors
@param bool $strict
@param string $message
@return void