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

setTemplatesDirectory() public method

public setTemplatesDirectory ( $path = null )
    public function setTemplatesDirectory($path = null)
    {
        $this->templatesDirectory = $path !== null ? (string) $path : atoum\directory . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'coverage';
        return $this;
    }

Usage Example

Beispiel #1
0
 public function testSetTemplatesDirectory()
 {
     $this->if($field = new testedClass(uniqid(), uniqid()))->then->object($field->setTemplatesDirectory($directory = uniqid()))->isIdenticalTo($field)->string($field->getTemplatesDirectory())->isEqualTo($directory)->object($field->setTemplatesDirectory($directory = rand(1, PHP_INT_MAX)))->isIdenticalTo($field)->string($field->getTemplatesDirectory())->isIdenticalTo((string) $directory);
 }