/** * @testdox getCSSNodes() returns all nodes that normally contain CSS */ public function testGetCSSNodes() { $template = new Template('<div style="color:red" onclick="alert(1)">foo</div>'); $nodes = $template->getCSSNodes(); $this->assertSame(1, count($nodes)); $this->assertSame('color:red', $nodes[0]->value); }