示例#1
0
 /**
  * Test detectCmdLocation
  */
 public function testDetectCmdLocationWithOptionalLocation()
 {
     $cmd = 'bar';
     $cmdPath = $this->createTempCommand($cmd);
     $result = Cli::detectCmdLocation($cmd, null, array(dirname($cmdPath)));
     // cleanup tmp executable
     $this->removeTempCommand($cmdPath);
     $this->assertEquals($cmdPath, $result, 'foo command should be found');
 }