/** * @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; }
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(); }