[Mapbender-commits] r4699 - trunk/mapbender/test/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sat Sep 26 06:15:10 EDT 2009
Author: christoph
Date: 2009-09-26 06:15:09 -0400 (Sat, 26 Sep 2009)
New Revision: 4699
Modified:
trunk/mapbender/test/http/classes/GeoRssFactoryTest.php
Log:
Modified: trunk/mapbender/test/http/classes/GeoRssFactoryTest.php
===================================================================
--- trunk/mapbender/test/http/classes/GeoRssFactoryTest.php 2009-09-26 10:10:28 UTC (rev 4698)
+++ trunk/mapbender/test/http/classes/GeoRssFactoryTest.php 2009-09-26 10:15:09 UTC (rev 4699)
@@ -5,9 +5,12 @@
class GeoRssFactoryTest extends PHPUnit_Framework_TestCase
{
var $someRssFactory;
+ var $geoRss;
public function setUp () {
$this->someRssFactory = new UniversalRssFactory();
+ $filename = "../../data/GeoRss_PortalU.xml";
+ $this->geoRss = $this->someRssFactory->createFromUrl($filename);
}
public function tearDown () {
@@ -16,17 +19,11 @@
public function testCreateFromUrl()
{
- $filename = "../../data/GeoRss_PortalU.xml";
- $geoRss = $this->someRssFactory->createFromUrl($filename);
-
- $this->assertNotNull($geoRss);
+ $this->assertNotNull($this->geoRss);
}
- public function testCreateFromUrl2()
+ public function testIsGeoRss()
{
- $filename = "../../data/GeoRss_PortalU.xml";
- $geoRss = $this->someRssFactory->createFromUrl($filename);
-
- $this->assertEquals(null, $geoRss);
+ $this->assertEquals("GeoRss", get_class($this->geoRss));
}
}
?>
\ No newline at end of file
More information about the Mapbender_commits
mailing list