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'); } }
public function testInvalidMinFontSize() { $decorator = new Decorator\HtmlTag(); $this->setExpectedException('Zend\\Tag\\Cloud\\Decorator\\Exception\\InvalidArgumentException', 'Fontsize must be numeric'); $decorator->setMinFontSize('foo'); }