This is a richer description supported by dublin code.

", $feed->DublinCore->description ); self::assertEquals( "CreativeCommons", $feed->items[0]->DublinCore->rights ); self::assertEquals( "This is the first item", $feed->items[0]->description ); } public function testParseWithFullDCGenerate() { $feed = ezcFeed::parse( dirname( __FILE__ ) . "/data/rss2-dc-01.xml" ); $expected = file_get_contents( dirname( __FILE__ ) . "/data/rss2-dc-04.xml" ); self::assertEquals( $expected, $feed->generate() ); } public function testParseWithUnknownDCModuleElement() { try { $feed = ezcFeed::parse( dirname( __FILE__ ) . "/data/rss2-dc-02.xml" ); self::fail( 'The expected exception was not thrown.' ); } catch ( ezcFeedUnsupportedModuleElementException $e ) { self::assertEquals( 'The element does not exist for the module .', $e->getMessage() ); } } public function testParseWithUnknownDCItemElement() { try { $feed = ezcFeed::parse( dirname( __FILE__ ) . "/data/rss2-dc-03.xml" ); self::fail( 'The expected exception was not thrown.' ); } catch ( ezcFeedUnsupportedModuleItemElementException $e ) { self::assertEquals( 'The feed item element does not exist for the module .', $e->getMessage() ); } } public static function suite() { return new PHPUnit_Framework_TestSuite( "ezcFeedRss2DCTest" ); } } ?>