예제 #1
0
 /**
  * @expectedException Zend\Feed\Writer\Exception
  */
 public function testAddsEnclosureThrowsExceptionWhenUriIsInvalid()
 {
     $this->markTestIncomplete('Pending Zend\\URI fix for validation');
     $entry = new Writer\Entry();
     $entry->setEnclosure(array('type' => 'audio/mpeg', 'uri' => 'http://', 'length' => '1337'));
 }
예제 #2
0
 /**
  * @covers Zend\Feed\Writer\Entry::setEnclosure
  */
 public function testSetEnclosureThrowsExceptionIfNotValidUri()
 {
     $entry = new Writer\Entry();
     try {
         $entry->setEnclosure(array('uri' => ''));
         $this->fail();
     } catch (Writer\Exception\InvalidArgumentException $e) {
     }
 }