public function testRenderWithNestedFormattedText()
 {
     $cite = Cite::create()->appendText(Bold::create()->appendText('Some ')->appendText(Italic::create()->appendText('nested formatting'))->appendText('.'));
     $expected = '<cite>' . '<b>Some <i>nested formatting</i>.</b>' . '</cite>';
     $rendered = $cite->render();
     $this->assertEquals($expected, $rendered);
 }
 public function testRenderWithAttribution()
 {
     $analytics = Pullquote::create()->appendText(Bold::create()->appendText('Some'))->appendText(' text to be ')->appendText(Italic::create()->appendText('within'))->appendText(' an ')->appendText(Italic::create()->appendText('aside'))->appendText(' for ')->appendText(Bold::create()->appendText('testing.'))->withAttribution('Some attribution');
     $expected = '<aside>' . '<b>Some</b> text to be <i>within</i> an <i>aside</i> for <b>testing.</b>' . '<cite>Some attribution</cite>' . '</aside>';
     $rendered = $analytics->render();
     $this->assertEquals($expected, $rendered);
 }
 public function testRenderWithBoldStrongItalicEm()
 {
     $blockquote = Blockquote::create()->appendText(Bold::create()->appendText('Some'))->appendText(' text to be ')->appendText(Italic::create()->appendText('within'))->appendText(' a ')->appendText(Italic::create()->appendText('blockquote'))->appendText(' for ')->appendText(Bold::create()->appendText('testing.'));
     $expected = '<blockquote>' . '<b>Some</b> text to be <i>within</i> a <i>blockquote</i> for <b>testing.</b>' . '</blockquote>';
     $rendered = $blockquote->render();
     $this->assertEquals($expected, $rendered);
 }