Esempio n. 1
0
 function testGetInfo()
 {
     $d = new Dir("/test/more_dir_tests/");
     $info = $d->getInfo();
     $this->assertTrue(isset($info["full_path"]), "La chiave full_path non è presente!!");
     $this->assertTrue(isset($info["path"]), "La chiave path non è presente!!");
     $this->assertEquals("more_dir_tests", $info["name"], "Il valore della chiave name non corrisponde!!");
     $this->assertEquals("dir", $info["type"], "Il tipo non corrisponde!!");
     $this->assertTrue($info["empty"], "La directory non risulta vuota!!");
 }