/**
  * @covers Veles\ErrorHandler\Subscribers\ErrorRenderer::getMessageBuilder
  * @depends testSetMessageBuilder
  */
 public function testGetMessageBuilder()
 {
     $expected = new ErrorBuilder();
     $this->object->setMessageBuilder($expected);
     $result = $this->object->getMessageBuilder();
     $msg = 'ErrorRenderer::getMessageBuilder() returns wrong result!';
     $this->assertSame($expected, $result, $msg);
 }
 /**
  * @covers Veles\ErrorHandler\HtmlBuilders\ErrorBuilder::getHtml
  * @covers Veles\ErrorHandler\HtmlBuilders\ErrorBuilder::convertTypeToString
  * @covers Veles\ErrorHandler\HtmlBuilders\ErrorBuilder::formatBacktrace
  */
 public function testGetHtml()
 {
     $exception = new \Exception($this->message);
     $handler = new ExceptionHandler();
     $this->object->setTemplate('Errors/exception.phtml');
     $this->object->setHandler($handler);
     $renderer = new ErrorRenderer();
     $renderer->setMessageBuilder($this->object);
     $this->expectOutputString($this->html);
     $handler->attach($renderer);
     $handler->run($exception);
 }