proj = new IDF_Project(); $this->proj->id = 1; $this->proj->name = $this->proj->shortname = 'test'; $this->proj->create(); } public function tearDown() { $this->proj->delete(); } public function createMock() { $instance = new IDF_Scm_Svn(sprintf(Pluf::f('svn_repositories'),'testrepository', $this->proj)); return $instance; } public function testAccessHistoryOfRenamedAndDeletedFiles() { $instance = $this->createMock(); $this->assertEquals('new-file', $instance->getPathInfo('new-file', 1)->fullpath); $this->assertEquals('alternate-name', $instance->getPathInfo('alternate-name', 2)->fullpath); } }