public function test_getPathToFile_shouldReturnFullPath() { $expectedEnd = '/climulti/myid.output'; $this->assertStringEndsWith($expectedEnd, $this->output->getPathToFile()); $this->assertGreaterThan(strlen($expectedEnd), strlen($this->output->getPathToFile())); }
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); }