src/Concerns/HasDocumentAssertions.php
public function assertErrors(array $errors, bool $strict = true, string $message = ''): self
    {
        Assert::assertErrors($this, $errors, $strict, $message);

        return $this;
    }
public function assertErrors(array $errors, bool $strict = true, string $message = ''): self
    {
        Assert::assertErrors($this, $errors, $strict, $message);

        return $this;
    }
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 array $errors
@param bool $strict
@param string $message
@return $this