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

setDestinationDirectory() public method

public setDestinationDirectory ( $path )
    public function setDestinationDirectory($path)
    {
        $this->destinationDirectory = (string) $path;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 public function testSetDestinationDirectory()
 {
     $this->if($field = new testedClass(uniqid(), uniqid()))->then->object($field->setDestinationDirectory($directory = uniqid()))->isIdenticalTo($field)->string($field->getDestinationDirectory())->isEqualTo($directory)->object($field->setDestinationDirectory($directory = rand(1, PHP_INT_MAX)))->isIdenticalTo($field)->string($field->getDestinationDirectory())->isIdenticalTo((string) $directory);
 }