예제 #1
0
파일: HtmlTagTest.php 프로젝트: nieldm/zf2
 /**
  * @dataProvider invalidAttributeProvider
  */
 public function testInvalidAttributesRaiseAnException($tags)
 {
     $decorator = new Decorator\HtmlTag();
     $decorator->setHTMLTags($tags);
     $this->setExpectedException('Zend\\Tag\\Exception\\InvalidAttributeNameException');
     $decorator->render($this->getTags());
 }
예제 #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());
 }