function it_renders_document(Document $document) { $document->toHtml()->willReturn('foo'); $this->render()->shouldReturn('foo'); }
public function render() { return $this->document->toHtml(); }