コード例 #1
0
 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.';
 }
コード例 #2
0
 public function testSetAndHasNoJobs()
 {
     $configuration = new Configuration();
     $this->assertFalse($configuration->hasJobs());
 }
コード例 #3
0
 protected function assembleShellJobString($command)
 {
     return $this->configuration->getPhpPath() . ' ' . $this->configuration->getScriptPath() . $command;
 }