PHP Class eZ\Publish\Core\REST\Server\Tests\Output\ValueObjectVisitor\ExceptionTest

Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
testResultContainsErrorCode ( string $result ) Test if result contains ErrorMessage element and error code.
testResultContainsErrorDescription ( string $result ) Test if result contains ErrorMessage element and description.
testResultContainsErrorMessage ( string $result ) Test if result contains ErrorMessage element.
testResultContainsExceptionAttributes ( string $result ) Test if ErrorMessage element contains required attributes.
testResultContainsPreviousError ( $result ) Test if result contains ErrorMessage element.
testVisit ( ) : string Test the Exception visitor.

Protected Methods

Method Description
getException ( ) : Exception Gets the exception.
getExpectedMessage ( ) : string Get expected message.
getExpectedStatusCode ( ) : integer Get expected status code.
internalGetVisitor ( ) : Exception Gets the exception visitor.

Method Details

getException() protected method

Gets the exception.
protected getException ( ) : Exception
return Exception

getExpectedMessage() protected method

Get expected message.
protected getExpectedMessage ( ) : string
return string

getExpectedStatusCode() protected method

Get expected status code.
protected getExpectedStatusCode ( ) : integer
return integer

internalGetVisitor() protected method

Gets the exception visitor.
protected internalGetVisitor ( ) : Exception
return eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor\Exception

testResultContainsErrorCode() public method

Test if result contains ErrorMessage element and error code.
public testResultContainsErrorCode ( string $result )
$result string

testResultContainsErrorDescription() public method

Test if result contains ErrorMessage element and description.
public testResultContainsErrorDescription ( string $result )
$result string

testResultContainsErrorMessage() public method

Test if result contains ErrorMessage element.
public testResultContainsErrorMessage ( string $result )
$result string

testResultContainsExceptionAttributes() public method

Test if ErrorMessage element contains required attributes.

testResultContainsPreviousError() public method

Test if result contains ErrorMessage element.
public testResultContainsPreviousError ( $result )

testVisit() public method

Test the Exception visitor.
public testVisit ( ) : string
return string