/** * @dataProvider invalidAttributeProvider */ public function testInvalidAttributesRaiseAnException($tags) { $decorator = new Decorator\HtmlTag(); $decorator->setHTMLTags($tags); $this->setExpectedException('Zend\\Tag\\Exception\\InvalidAttributeNameException'); $decorator->render($this->getTags()); }
public function testSetOptions() { $decorator = new Decorator\HtmlTag(); $decorator->setOptions(array('minFontSize' => 5, 'maxFontSize' => 10, 'fontSizeUnit' => 'pt')); $this->assertEquals(5, $decorator->getMinFontSize()); $this->assertEquals(10, $decorator->getMaxFontSize()); $this->assertEquals('pt', $decorator->getFontSizeUnit()); }