public function testInvalidClassList() { $decorator = new Decorator\HtmlTag(); $this->setExpectedException('Zend\Tag\Cloud\Decorator\Exception\InvalidArgumentException', 'Classlist contains an invalid classname'); $decorator->setClassList(array(array())); }
public function testInvalidClassList() { $decorator = new Decorator\HtmlTag(); try { $decorator->setClassList(array(array())); $this->fail('An expected Zend\\Tag\\Cloud\\Decorator\\Exception\\InvalidArgumentException was not raised'); } catch (InvalidArgumentException $e) { $this->assertEquals($e->getMessage(), 'Classlist contains an invalid classname'); } }