Alex\BehatLauncher\Behat\OutputFile::moveTo PHP Метод

moveTo() публичный Метод

Moves the output file to a new location.
public moveTo ( string $path ) : OutputFile
$path string an absolute path
Результат OutputFile
    public function moveTo($path)
    {
        if (!$this->exists()) {
            throw new \LogicException(sprintf('Cannot move output file to %s, file does not exist (path: %s).', $path, $this->path ?: '*none*'));
        }
        $before = $this->path;
        $this->path = $path;
        rename($before, $this->getOrCreatePath());
        return $this;
    }