Beispiel #1
0
 /**
  * @expectedException Zend\Feed\Writer\Exception\ExceptionInterface
  */
 public function testSetCategoriesThrowsExceptionIfAnyCatNameGreaterThan255CharsLength()
 {
     $feed = new Writer\Feed();
     $cats = array('cat1', 'cat2' => array('cat2-1', str_repeat('a', 256)));
     $feed->setItunesCategories($cats);
     $this->assertEquals($cats, $feed->getItunesAuthors());
 }