eZ\Bundle\EzPublishRestBundle\Features\Context\SubContext\EzRest::assertResponseErrorDescription PHP Method

assertResponseErrorDescription() public method

public assertResponseErrorDescription ( $errorDescriptionRegEx )
    public function assertResponseErrorDescription($errorDescriptionRegEx)
    {
        $errorDescription = $this->getResponseError('description');
        Assertion::assertEquals(preg_match($errorDescriptionRegEx, $errorDescription), 1, "Expected to find a description that matched '{$errorDescriptionRegEx}' RegEx but found '{$errorDescription}'");
    }