src/Debug/FileStreamWrapper.php
public function rename($pathFrom, $pathTo)
    {
        self::restorePrev();
        $success = \rename($pathFrom, $pathTo);
        self::register();
        return $success;
    }
public function rename($pathFrom, $pathTo)
    {
        self::restorePrev();
        $success = \rename($pathFrom, $pathTo);
        self::register();
        return $success;
    }
public function rename ( $ pathFrom , $ pathTo ) { self :: restorePrev ( ) ; $ success = \ rename ( $ pathFrom , $ pathTo ) ; self :: register ( ) ; return $ success ; }
Rename a file

@param string $pathFrom existing path
@param string $pathTo   The URL which the path_from should be renamed to.

@return boolean

@see http://php.net/manual/en/streamwrapper.rename.php
Rename a file