Example #1
0
 /**
  * @dataProvider invalidAttributeProvider
  */
 public function testInvalidAttributeNamesRaiseAnException($tags)
 {
     $decorator = new Decorator\HtmlCloud();
     $decorator->setHTMLTags($tags);
     $this->setExpectedException('Zend\\Tag\\Exception\\InvalidAttributeNameException');
     $decorator->render(array());
 }
Example #2
0
    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')));
    }