/** * @test * it should find files with relative dirnname */ public function it_should_find_files_with_relative_dirnname() { $path = dirname(dirname(dirname(__FILE__))) . '/foo.php'; touch($path); $this->assertEquals($path, PathUtils::findHereOrInParent('../../foo.php', dirname(__FILE__))); unlink($path); }