/** * @dataProvider invalidAttributeProvider */ public function testInvalidAttributeNamesRaiseAnException($tags) { $decorator = new Decorator\HtmlCloud(); $decorator->setHTMLTags($tags); $this->setExpectedException('Zend\\Tag\\Exception\\InvalidAttributeNameException'); $decorator->render(array()); }
public function testSetOptions() { $decorator = new Decorator\HtmlCloud(); $decorator->setOptions(array('htmlTags' => array('div'), 'separator' => ' ')); $this->assertEquals('<div>foo bar</div>', $decorator->render(array('foo', 'bar'))); }