copy() public method

Copy the file object directly to another file on disk.
public copy ( string $new, boolean $overwrite = false ) : File
$new string
$overwrite boolean
return File
コード例 #1
0
ファイル: FileTest.php プロジェクト: nicksagona/PopPHP
 public function testCopyException()
 {
     $this->setExpectedException('Pop\\File\\Exception');
     $f = new File('access.txt');
     $f->copy(__DIR__ . '/../tmp/access.txt');
 }