PHP 클래스 eZ\Publish\Core\REST\Common\Tests\Output\ValueObjectVisitorBaseTest

상속: extends eZ\Publish\Core\REST\Server\Tests\BaseTest, use trait eZ\Publish\Core\REST\Common\Tests\AssertXmlTagTrait
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$generator eZ\Publish\Core\REST\Common\Output\Generator\Xml Output generator.
$requestParser eZ\Publish\Core\REST\Common\RequestParser
$visitorMock eZ\Publish\Core\REST\Common\Output\Visitor Visitor mock.

보호된 메소드들

메소드 설명
addRouteExpectation ( string $routeName, array $arguments, string $returnValue ) Adds an expectation to the routerMock. Expectations must be added sequentially.
addTemplatedRouteExpectation ( string $routeName, array $arguments, string $returnValue ) Adds an expectation to the templatedRouterMock. Expectations must be added sequentially.
assertXPath ( DOMNode $domNode, string $xpathExpression ) Asserts that the given $xpathExpression returns a non empty node set with $domNode as its context.
getGenerator ( ) : Xml Gets the output generator.
getRequestParser ( ) : eZ\Publish\Core\REST\Common\RequestParser | PHPUnit_Framework_MockObject_MockObject
getResponseMock ( ) : Response | PHPUnit_Framework_MockObject_MockObject
getRouterMock ( ) : Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject
getTemplatedRouterMock ( ) : Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject
getVisitor ( )
getVisitorMock ( ) : Visitor | PHPUnit_Framework_MockObject_MockObject Gets the visitor mock.
internalGetVisitor ( ) : ValueObjectVisitor Must return an instance of the tested visitor object.
resetRouterMock ( ) Resets the router mock and its expected calls index & list.

메소드 상세

addRouteExpectation() 보호된 메소드

Adds an expectation to the routerMock. Expectations must be added sequentially.
protected addRouteExpectation ( string $routeName, array $arguments, string $returnValue )
$routeName string
$arguments array
$returnValue string

addTemplatedRouteExpectation() 보호된 메소드

Adds an expectation to the templatedRouterMock. Expectations must be added sequentially.
protected addTemplatedRouteExpectation ( string $routeName, array $arguments, string $returnValue )
$routeName string
$arguments array
$returnValue string

assertXPath() 보호된 메소드

This method asserts that $xpathExpression results in a non-empty node set in context of $domNode, by wrapping the "boolean()" function around it and evaluating it on the document owning $domNode.
protected assertXPath ( DOMNode $domNode, string $xpathExpression )
$domNode DOMNode
$xpathExpression string

getGenerator() 보호된 메소드

Gets the output generator.
protected getGenerator ( ) : Xml
리턴 eZ\Publish\Core\REST\Common\Output\Generator\Xml

getRequestParser() 보호된 메소드

protected getRequestParser ( ) : eZ\Publish\Core\REST\Common\RequestParser | PHPUnit_Framework_MockObject_MockObject
리턴 eZ\Publish\Core\REST\Common\RequestParser | PHPUnit_Framework_MockObject_MockObject

getResponseMock() 보호된 메소드

protected getResponseMock ( ) : Response | PHPUnit_Framework_MockObject_MockObject
리턴 Symfony\Component\HttpFoundation\Response | PHPUnit_Framework_MockObject_MockObject

getRouterMock() 보호된 메소드

protected getRouterMock ( ) : Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject
리턴 Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject

getTemplatedRouterMock() 보호된 메소드

protected getTemplatedRouterMock ( ) : Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject
리턴 Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject

getVisitor() 보호된 메소드

protected getVisitor ( )

getVisitorMock() 보호된 메소드

Gets the visitor mock.
protected getVisitorMock ( ) : Visitor | PHPUnit_Framework_MockObject_MockObject
리턴 eZ\Publish\Core\REST\Common\Output\Visitor | PHPUnit_Framework_MockObject_MockObject

internalGetVisitor() 추상적인 보호된 메소드

Must return an instance of the tested visitor object.
abstract protected internalGetVisitor ( ) : ValueObjectVisitor
리턴 eZ\Publish\Core\REST\Common\Output\ValueObjectVisitor

resetRouterMock() 보호된 메소드

Resets the router mock and its expected calls index & list.
protected resetRouterMock ( )

프로퍼티 상세

$generator 보호되어 있는 프로퍼티

Output generator.
protected Xml,eZ\Publish\Core\REST\Common\Output\Generator $generator
리턴 eZ\Publish\Core\REST\Common\Output\Generator\Xml

$requestParser 보호되어 있는 프로퍼티

protected RequestParser,eZ\Publish\Core\REST\Common $requestParser
리턴 eZ\Publish\Core\REST\Common\RequestParser

$visitorMock 보호되어 있는 프로퍼티

Visitor mock.
protected Visitor,eZ\Publish\Core\REST\Common\Output $visitorMock
리턴 eZ\Publish\Core\REST\Common\Output\Visitor