/** * @throws \Exception */ public function start() { try { $this->running = true; $this->run($this->config->getCallback()); } catch (LoopException $exception) { $this->event->setException($exception); $this->stop(); } catch (\Exception $exception) { throw $exception; } }
public function testCallbackAccessor() { $this->assertNull($this->instance->getCallback()); $this->assertSame($this->instance, $this->instance->setCallback('trim')); $this->assertSame('trim', $this->instance->getCallback()); }