is not supported.", $e->getMessage() ); } } public function testAddModuleSupported() { $feed = new ezcFeed( 'rss2' ); $feed->addModule( 'ezcFeedModuleDublinCore' ); } public function testFeedNonExistentLocal() { try { $feed = ezcFeed::parse( 'not-here.xml' ); self::fail( 'Expected exception not thrown' ); } catch ( ezcBaseFileNotFoundException $e ) { self::assertEquals( "The file could not be found.", $e->getMessage() ); } } public function testFeedNonExistentRemote() { try { $feed = ezcFeed::parse( 'http://ez.no/not-here.xml' ); self::fail( 'Expected exception not thrown' ); } catch ( ezcBaseFileNotFoundException $e ) { self::assertEquals( "The file could not be found.", $e->getMessage() ); } } public function testFeedExistsRemote() { $feed = ezcFeed::parse( 'http://ez.no/rss/feed/communitynews' ); } public static function suite() { return new PHPUnit_Framework_TestSuite( "ezcFeedTest" ); } } ?>