本文整理汇总了PHP中ezcBaseFile::copyRecursive方法的典型用法代码示例。如果您正苦于以下问题:PHP ezcBaseFile::copyRecursive方法的具体用法?PHP ezcBaseFile::copyRecursive怎么用?PHP ezcBaseFile::copyRecursive使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ezcBaseFile
的用法示例。
在下文中一共展示了ezcBaseFile::copyRecursive方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testRecursiveCopyDirCalled0
public function testRecursiveCopyDirCalled0()
{
ezcBaseFile::copyRecursive($this->tempDir . '/dir7', $this->tempDir . '/dest');
$this->assertEquals(count(ezcBaseFile::findRecursive($this->tempDir . '/dir7')), count(ezcBaseFile::findRecursive($this->tempDir . '/dest')));
$this->assertTrue(is_dir($this->tempDir . '/dest/0'));
}
示例2: testRecursiveCopyFailureNotWriteable
public function testRecursiveCopyFailureNotWriteable()
{
try {
ezcBaseFile::copyRecursive($this->tempDir . '/dir2', $this->tempDir . '/dir4');
} catch (ezcBaseFilePermissionException $e) {
return;
}
$this->fail('Expected ezcBaseFilePermissionException.');
}
示例3: setUpDirs
protected function setUpDirs()
{
$origTplDir = dirname(__FILE__) . '/../src/template_writer/templates';
$dirs['tplDir'] = $this->tempDir . '/templates';
$dirs['classDir'] = $this->tempDir . '/classes';
$dirs['configDir'] = $this->tempDir . '/config';
$dirs['tmpDir'] = $this->tempDir . '/tmp';
mkdir($dirs['classDir']);
mkdir($dirs['configDir']);
mkdir($dirs['tmpDir']);
ezcBaseFile::copyRecursive($origTplDir, $dirs['tplDir']);
return $dirs;
}