Exemplo n.º 1
0
 /**
  * @param Process $process
  * @return $this
  */
 public function setProcess(Process $process)
 {
     if ($this->getConfig() === null && $process->getConfig() instanceof Config) {
         $this->setConfig($process->getConfig());
     }
     $this->_process = $process;
     return $this;
 }
Exemplo n.º 2
0
 public function testApplication()
 {
     $process = new Process($this->config);
     $application = new Application($this->config, $process);
     $application->add(new MockJob());
     $application->run();
     $test = $process->isRunning();
     $this->assertTrue($test);
     $process->stop();
 }