eZ\Publish\Core\REST\Common\Tests\Output\ValueObjectVisitorBaseTest::getVisitorMock PHP Method

getVisitorMock() protected method

Gets the visitor mock.
protected getVisitorMock ( ) : Visitor | PHPUnit_Framework_MockObject_MockObject
return eZ\Publish\Core\REST\Common\Output\Visitor | PHPUnit_Framework_MockObject_MockObject
    protected function getVisitorMock()
    {
        if (!isset($this->visitorMock)) {
            $this->visitorMock = $this->getMock('\\eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor', array(), array(), '', false);
            $this->visitorMock->expects($this->any())->method('getResponse')->will($this->returnValue($this->getResponseMock()));
        }
        return $this->visitorMock;
    }