コード例 #1
0
ファイル: FileTest.php プロジェクト: mbcraft/piol
 function testCopyFileWithDifficultName()
 {
     $f = new File("test/difficult_names/src/00 - Época\\ Porteño.txt");
     $d = new Dir("test/difficult_names/dest/");
     $f->copy($d);
     $copied = new File("test/difficult_names/dest/00 - Época\\ Porteño.txt");
     $this->assertTrue($copied->exists(), "Il file non è stato copiato correttamente!");
     $copied->delete();
     $this->assertFalse($copied->exists(), "Il file non è stato eliminato correttamente!");
 }