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'); } }
public function testInvalidFontSizeUnit() { $decorator = new Decorator\HtmlTag(); $this->setExpectedException('Zend\\Tag\\Cloud\\Decorator\\Exception\\InvalidArgumentException', 'Invalid fontsize unit specified'); $decorator->setFontSizeUnit('foo'); }