Exemplo n.º 1
0
 public function testInvalidFontSizeUnit()
 {
     $decorator = new Decorator\HtmlTag();
     try {
         $decorator->setFontSizeUnit('foo');
         $this->fail('An expected Zend\\Tag\\Cloud\\Decorator\\Exception\\InvalidArgumentException was not raised');
     } catch (InvalidArgumentException $e) {
         $this->assertEquals($e->getMessage(), 'Invalid fontsize unit specified');
     }
 }
Exemplo n.º 2
0
 public function testInvalidFontSizeUnit()
 {
     $decorator = new Decorator\HtmlTag();
     $this->setExpectedException('Zend\\Tag\\Cloud\\Decorator\\Exception\\InvalidArgumentException', 'Invalid fontsize unit specified');
     $decorator->setFontSizeUnit('foo');
 }