Example #1
0
 public function test_getPathToFile_shouldReturnFullPath()
 {
     $expectedEnd = '/climulti/myid.output';
     $this->assertStringEndsWith($expectedEnd, $this->output->getPathToFile());
     $this->assertGreaterThan(strlen($expectedEnd), strlen($this->output->getPathToFile()));
 }
Example #2
0
 private function executeAsyncCli($url, Output $output, $cmdId)
 {
     $this->processes[] = new Process($cmdId);
     $url = $this->appendTestmodeParamToUrlIfNeeded($url);
     $query = UrlHelper::getQueryFromUrl($url, array('pid' => $cmdId));
     $hostname = UrlHelper::getHostFromUrl($url);
     $command = $this->buildCommand($hostname, $query, $output->getPathToFile());
     Log::debug($command);
     shell_exec($command);
 }