protected function setUp() { $this->url = new PSeo_Sitemap_Url_Xml(); $this->url->setLoc('http://www.google.com/'); $this->url->setLastmod('2010-03-15'); $this->url->setChangefreq('always'); $this->url->setPriority('0.8'); }
public function testAddUrlObject() { $url = new PSeo_Sitemap_Url_Xml(); $url->setLoc('http://www.google.com/'); $this->sitemap->addUrlObject($url); $data = $this->sitemap->urls(); $this->assertEquals('http://www.google.com/', $data[0]->loc()); }
protected function setUp() { $this->url = new PSeo_Sitemap_Url_Txt(); $this->url->setLoc('http://www.google.com/'); }