public function testRenderWithLink() { $cite = Cite::create()->appendText('Some ')->appendText(Anchor::create()->withHRef('http://foo.com')->appendText('link'))->appendText('.'); $expected = '<cite>' . 'Some <a href="http://foo.com">link</a>.' . '</cite>'; $rendered = $cite->render(); $this->assertEquals($expected, $rendered); }