Author: as Date: Thu Nov 15 11:33:22 2007 New Revision: 6737 Log: - Added tests for multiple 'author' ATOM feed entry sub-elements.
Added: trunk/Feed/tests/atom/regression/parse/entry/author/author_multiple.in trunk/Feed/tests/atom/regression/parse/entry/author/author_multiple.out Added: trunk/Feed/tests/atom/regression/parse/entry/author/author_multiple.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/author/author_multiple.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/author/author_multiple.in [iso-8859-1] Thu Nov 15 11:33:22 2007 @@ -1,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <author> + <name>Entry author name 1</name> + <email>Entry author email 1</email> + <uri>Entry author uri 1</uri> + </author> + <author> + <name>Entry author name 2</name> + <email>Entry author email 2</email> + <uri>Entry author uri 2</uri> + </author> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/author/author_multiple.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/author/author_multiple.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/author/author_multiple.out [iso-8859-1] Thu Nov 15 11:33:22 2007 @@ -1,0 +1,25 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$author = $entry->add( 'author' ); +$author->name = 'Entry author name 1'; +$author->email = 'Entry author email 1'; +$author->uri = 'Entry author uri 1'; + +$author = $entry->add( 'author' ); +$author->name = 'Entry author name 2'; +$author->email = 'Entry author email 2'; +$author->uri = 'Entry author uri 2'; + +return $feed; +?> -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components