public function testApplyStyleSheet() { $this->object->applyStyleSheet("p:not(.p2) { color: red }"); $this->assertEquals(file_get_contents($this->basedir . "/testApplyStylesheet.html"), $this->object->getHTML()); }