예제 #1
0
파일: XmlTest.php 프로젝트: ryanto/PHP-Seo
 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');
 }
예제 #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());
 }
예제 #3
0
파일: TxtTest.php 프로젝트: ryanto/PHP-Seo
 protected function setUp()
 {
     $this->url = new PSeo_Sitemap_Url_Txt();
     $this->url->setLoc('http://www.google.com/');
 }