public function testAddByThrowsExceptionIfNameOmittedFromArray() { $entry = new Zend_Feed_Writer_Deleted(); try { $entry->setBy(array('uri' => 'notauri')); $this->fail(); } catch (Zend_Feed_Exception $e) { } }
/** * Creates a new Zend_Feed_Writer_Deleted data container for use. This is NOT * added to the current feed automatically, but is necessary to create a * container with some initial values preset based on the current feed data. * * @return Zend_Feed_Writer_Deleted */ public function createTombstone() { $deleted = new Zend_Feed_Writer_Deleted(); if ($this->getEncoding()) { $deleted->setEncoding($this->getEncoding()); } $deleted->setType($this->getType()); return $deleted; }