public function testIncludeFileRepeatedly() { $dbFileIncludes = new Scisr_Db_FileIncludes($this->getDb()); $dbFileIncludes->init(); $dbFileIncludes->registerFileInclude('/x/y/myfile.php', '/x/z/otherfile.php'); $dbFileIncludes->registerFileInclude('/x/y/myfile.php', '/x/z/otherfile.php'); $this->assertSame(array('/x/z/otherfile.php'), $dbFileIncludes->getIncludedFiles('/x/y/myfile.php')); }