Horde_Vfs_TestBase::_copy PHP Method

_copy() protected method

Structure after test: test/ dir1/ file1: content1_1 file2: __FILE__ dir2/ dir3/ file1: content3_1 file2: __FILE__ dir4/ file1: content1_1 file1: content1
protected _copy ( )
    protected function _copy()
    {
        try {
            self::$vfs->copy('test/dir1', 'file1', 'test/dir1', true);
            $this->fail('Exception expected');
        } catch (Horde_Vfs_Exception $e) {
        }
        self::$vfs->copy('test/dir1', 'file1', 'test/dir4', true);
        $this->assertTrue(self::$vfs->exists('test/dir1', 'file1'));
        $this->assertTrue(self::$vfs->exists('test/dir4', 'file1'));
    }