This commit is contained in:
James
2020-02-20 17:06:44 +00:00
commit 6a986a62c0
6 changed files with 2905 additions and 0 deletions

21
tests/CrawlerTest.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
use \PHPUnit\Framework\TestCase;
use JHodges\Sitemap\Crawler;
class CrawlerTest extends TestCase{
public function testCrawl(){
$crawler=new Crawler();
$sitemap=$crawler->crawl('http://jhodges.co.uk');
print_r($sitemap);
return $sitemap;
}
/**
* @depends testCrawl
*/
public function testBrokenLinks($sitemap){
}
}