示例#1
0
 /**
  * Tests Cli::toAbsolutePath
  */
 public function testToAbsolutePathWIthIncludePath()
 {
     $filesDir = realpath(__DIR__ . '/../../_files/conf');
     set_include_path(get_include_path() . PATH_SEPARATOR . $filesDir);
     $res = Cli::toAbsolutePath('config-valid.xml', '', true);
     $this->assertEquals($filesDir . '/config-valid.xml', $res);
 }