randomRss = dirname(__FILE__) . "/../../data/randomRss.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); } } ?>