/** * @test */ public function removeUnprocessableHtmlTagCausesTagToStayAgain() { $this->subject->addUnprocessableHtmlTag('p'); $this->subject->removeUnprocessableHtmlTag('p'); $html = $this->html5DocumentType . self::LF . '<html><p>foo<br/><span>bar</span></p></html>'; $this->subject->setHtml($html); self::assertContains('<p>', $this->subject->emogrify()); }
/** * @test */ public function removeUnprocessableHtmlTagCausesTagToStayAgain() { $this->subject->addUnprocessableHtmlTag('p'); $this->subject->removeUnprocessableHtmlTag('p'); $html = self::HTML5_DOCUMENT_TYPE . self::LF . '<html><p>foo<br/><span>bar</span></p></html>' . self::LF; $this->subject->setHtml($html); $this->assertContains('<p>', $this->subject->emogrify()); }