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