/** * @expectedException \Exception */ public function testSetHandleErrorsBeforeStartThrowsException() { $this->handler->start(); $this->handler->setHandleErrors(true); }