Exemple #1
0
 public function testInvalidMinFontSize()
 {
     $decorator = new Decorator\HtmlTag();
     try {
         $decorator->setMinFontSize('foo');
         $this->fail('An expected Zend\\Tag\\Cloud\\Decorator\\Exception\\InvalidArgumentException was not raised');
     } catch (InvalidArgumentException $e) {
         $this->assertEquals($e->getMessage(), 'Fontsize must be numeric');
     }
 }
Exemple #2
0
 public function testInvalidMinFontSize()
 {
     $decorator = new Decorator\HtmlTag();
     $this->setExpectedException('Zend\\Tag\\Cloud\\Decorator\\Exception\\InvalidArgumentException', 'Fontsize must be numeric');
     $decorator->setMinFontSize('foo');
 }