/** * @test */ public function removeAllowedMediaTypeRemovesStylesForTheGivenMediaType() { $css = '@media screen { html {} }'; $html = $this->html5DocumentType . self::LF . '<html></html>'; $this->subject->setHtml($html); $this->subject->setCss($css); $this->subject->removeAllowedMediaType('screen'); self::assertNotContains($css, $this->subject->emogrify()); }