public function testProcessGetsStarted() { $test = false; $application = new Application($this->config); $application->add(new MockJob()); $application->addCallback(function (Application $application) use(&$test) { $test = true; $application->setKill(true); }); $application->run(false); $this->assertTrue($test); }