/** * @covers Veles\ErrorHandler\Subscribers\ErrorRenderer::update */ public function testUpdate() { $builder = new ErrorBuilder(); $builder->setTemplate('Errors/exception.phtml'); $exception = new \Exception($this->message); $handler = new ExceptionHandler(); $handler->run($exception); $this->expectOutputString($this->html); $this->object->setMessageBuilder($builder); $this->object->update($handler); }