Exemplo n.º 1
0
 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');
 }
Exemplo n.º 2
0
 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());
 }
Exemplo n.º 3
0
 protected function setUp()
 {
     $this->url = new PSeo_Sitemap_Url_Txt();
     $this->url->setLoc('http://www.google.com/');
 }