protected function assembleErrorString() { $string = 'Jobs: ' . PHP_EOL; $i = 1; foreach ($this->getExecutor()->getRunningJobs() as $job) { $string .= $i . '. ' . $job->getProcess()->getCommandLine() . PHP_EOL; $i++; } return $string . ' have taken over ' . $this->configuration->getTimeout() . ' seconds to execute.'; }
public function testSetAndHasNoJobs() { $configuration = new Configuration(); $this->assertFalse($configuration->hasJobs()); }
protected function assembleShellJobString($command) { return $this->configuration->getPhpPath() . ' ' . $this->configuration->getScriptPath() . $command; }