/** * @expectedException Zend\Feed\Writer\Exception\ExceptionInterface */ public function testSetKeywordsThrowsExceptionIfFormattedKeywordsExceeds255CharLength() { $entry = new Writer\Entry(); $words = array(str_repeat('a', 253), str_repeat('b', 2)); $entry->setItunesKeywords($words); }