/** * @expectedException Zend_Feed_Exception */ public function testSetKeywordsThrowsExceptionIfFormattedKeywordsExceeds255CharLength() { $entry = new Zend_Feed_Writer_Entry(); $words = array(str_repeat('a', 253), str_repeat('b', 2)); $entry->setItunesKeywords($words); }