mageekguy\atoum\report\fields\runner\coverage\html::setTemplateParser PHP Method

setTemplateParser() public method

public setTemplateParser ( mageekguy\atoum\template\parser $parser = null )
$parser mageekguy\atoum\template\parser
    public function setTemplateParser(template\parser $parser = null)
    {
        $this->templateParser = $parser ?: new template\parser();
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 public function testSetTemplateParser()
 {
     $this->if($field = new testedClass(uniqid(), uniqid(), uniqid()))->then->object($field->setTemplateParser($templateParser = new template\parser()))->isIdenticalTo($field)->object($field->getTemplateParser())->isIdenticalTo($templateParser);
 }