/** * `pullStyles` should update the stylesheet with record values. */ public function testPullStyles() { $exhibit = $this->_exhibit(); $exhibit->styles = "\n .tag1 {\n fill-color: 1;\n fill-color-select: 2;\n }\n .tag2 {\n stroke-color: 3;\n stroke-color-select: 4;\n }\n .tag3 {\n zindex: 5;\n weight: 6;\n }\n "; $record = new NeatlineRecord($exhibit); $record->setArray(array('tags' => 'tag1,tag2', 'fill_color' => '7', 'fill_color_select' => '8', 'stroke_color' => '9', 'stroke_color_select' => '10')); $exhibit->pullStyles($record); $this->assertEquals(array('tag1' => array('fill_color' => '7', 'fill_color_select' => '8'), 'tag2' => array('stroke_color' => '9', 'stroke_color_select' => '10'), 'tag3' => array('zindex' => '5', 'weight' => '6')), nl_readCSS($exhibit->styles)); }