Author: as
Date: Fri Feb 15 14:40:46 2008
New Revision: 7386

Log:
- Added a test for parsing modules which are not supported (they are ignored).

Modified:
    trunk/Feed/tests/feed_test.php

Modified: trunk/Feed/tests/feed_test.php
==============================================================================
--- trunk/Feed/tests/feed_test.php [iso-8859-1] (original)
+++ trunk/Feed/tests/feed_test.php [iso-8859-1] Fri Feb 15 14:40:46 2008
@@ -160,6 +160,14 @@
         }
     }
 
+    public function testParseModuleNotRecognized()
+    {
+        $feed = ezcFeed::parseContent( '<?xml version="1.0" 
encoding="utf-8"?><feed 
xmlns="http://www.w3.org/2005/Atom";><unsupported_module:element>Content</unsupported_module:element></feed>'
 );
+        $this->assertEquals( 'ezcFeed', get_class( $feed ) );
+        $this->assertEquals( 'atom', $feed->getFeedType() );
+        $this->assertEquals( 'application/atom+xml', $feed->getContentType() );
+    }
+
     public function testParseAtom1()
     {
         $dot = DIRECTORY_SEPARATOR;


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to