parse(); $this->assertTrue($result); $syntax_stylesheet = $parser->get_context(); $rulesets = $syntax_stylesheet->get_rulesets()->get(); $this->assertEquals(count($rulesets), 2); $this->assertEquals($rulesets[0]->get_selectors()->get(0)->get_selector(0)->get_element(), 'ol'); $this->assertEquals($rulesets[1]->get_selectors()->get(0)->get_selector(0)->get_element(), 'ul'); } } ?>