/** * Find selectors with property * @author Anthony Short * @test */ public function Find_selectors_with_property() { $string = '#id{background:blue}#id2{color:blue}#id3{background-color:blue}#id{dbackground:blue}#id5{color:red;background:blue}'; $expected = array(0 => array('string' => '#id{background:blue}', 'selector' => '#id'), 1 => array('string' => '#id5{color:red;background:blue}', 'selector' => '#id5')); $output = Scaffold_Helper_CSS::find_selectors_with_property('background', $string); $this->assertEquals($expected, $output); }