コード例 #1
0
 /**
  * @test
  */
 public function emogrifyWhenStyleBlocksParsingDisabledKeepInlineStyles()
 {
     $styleAttributeValue = 'text-align: center;';
     $html = $this->html5DocumentType . '<html><head><style type="text/css">p { color: #ccc; }</style></head>' . '<body><p style="' . $styleAttributeValue . '">paragraph</p></body></html>';
     $this->subject->setHtml($html);
     $this->subject->disableStyleBlocksParsing();
     $result = $this->subject->emogrify();
     self::assertContains('<p style="' . $styleAttributeValue . '">', $result);
 }