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
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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