Example #1
0
 function testNewTempFile()
 {
     $d = new Dir("/test/tmp_dir/");
     File::setTmpFileDir($d);
     $this->assertEquals($d->getFullPath(), File::getTmpFileDir()->getFullPath(), "La directory dei file temporanei non รจ stata impostata correttamente!!");
     $tmp_file = File::newTempFile();
     $tmp_file->setContent("Hello!");
     $this->assertEquals("Hello!", $tmp_file->getContent(), "Il contenuto salvato nel file temporaneo non corrisponde!!");
     $tmp_file->delete();
 }