eZ\Publish\Core\REST\Common\Tests\Output\Generator\XmlTest::getGenerator PHP Method

getGenerator() protected method

protected getGenerator ( )
    protected function getGenerator()
    {
        if (!isset($this->generator)) {
            $this->generator = new Common\Output\Generator\Xml($this->getMock('eZ\\Publish\\Core\\REST\\Common\\Output\\Generator\\Xml\\FieldTypeHashGenerator', array(), array(), '', false));
        }
        $this->generator->setFormatOutput(true);
        return $this->generator;
    }