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($reponame) { $repourl = 'file://'.DATADIR.'/'.__CLASS__.'/'.$reponame; $instance = new IDF_Scm_Svn($repourl, $this->proj); return $instance; } public function testAccessHistoryOfRenamedAndDeletedFiles() { $instance = $this->createMock(__FUNCTION__); $this->assertEquals('new-file', $instance->getPathInfo('new-file', 1)->fullpath); $this->assertEquals('alternate-name', $instance->getPathInfo('alternate-name', 2)->fullpath); } }