public function testSetAndGetTimeout()
 {
     $configuration = new Configuration();
     $timeout = $this->configuration->getTimeout();
     $configuration->setTimeout($timeout);
     $this->assertEquals($timeout, $configuration->getTimeout());
 }
Esempio n. 2
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.';
 }