function testMoveToWithRename() { $f = new File("/test/move_source/afile.txt"); $f->touch(); $f->setContent("abc"); $target_dir = new Dir("/test/move_target/"); $ft = new File("/test/move_target/movedfile.txt"); $this->assertFalse($ft->exists(), "Il file nella directory target esiste giĆ !!"); $f->moveTo($target_dir, "movedfile.txt"); $this->assertTrue($ft->exists(), "Il file nella directory target non esiste!!"); $this->assertEquals("abc", $ft->getContent(), "Il contenuto del file spostato non corrisponde!!"); $ft->delete(); }