[Mapbender-commits] r4733 - trunk/mapbender/test/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sat Sep 26 14:15:43 EDT 2009


Author: verenadiewald
Date: 2009-09-26 14:15:42 -0400 (Sat, 26 Sep 2009)
New Revision: 4733

Added:
   trunk/mapbender/test/http/classes/RssTest.php
Log:


Added: trunk/mapbender/test/http/classes/RssTest.php
===================================================================
--- trunk/mapbender/test/http/classes/RssTest.php	                        (rev 0)
+++ trunk/mapbender/test/http/classes/RssTest.php	2009-09-26 18:15:42 UTC (rev 4733)
@@ -0,0 +1,37 @@
+<?php
+require_once 'PHPUnit/Framework.php';
+require_once dirname(__FILE__) . "/../../../http/classes/class_rss_factory.php";
+
+class RssTest extends PHPUnit_Framework_TestCase
+{
+	var $rss;
+
+	protected $someRssFactory;
+	protected $randomRss=  "../../http/tmp/rss_RssTest.xml";
+
+
+	public function testCreateRssAt()
+    {
+    	$this->someRssFactory = new RssFactory();
+    	$anotherRss = $this->someRssFactory->createAt($this->randomRss);
+    	$this->assertNotNull(
+        	$anotherRss
+        );
+	}
+    /*
+     * @depends testCreateRssAt
+    */
+	public function testCreateRssFromUrl()
+	{
+
+    	$this->someRssFactory = new RssFactory();
+		$yetAnotherRss = $this->someRssFactory->createFromUrl($this->randomRss);
+		$this->assertEquals(
+        	"Rss",
+        	get_class($yetAnotherRss)
+        );
+
+        unlink($this->randomRss);
+	}
+}
+?>



More information about the Mapbender_commits mailing list