public function testClassMerge() { $decorator = new HtmlTag('div'); $decorator->setOption('class', 'class'); $toMerge = new HtmlTag(array('class' => 'second')); $decorator->merge($toMerge); $expected = '<div class="class second">foo</div>'; $actual = $decorator->render('foo'); $this->assertSame($expected, $actual); }