Tests/RobotstxtTest.php : The crawldelay is "null" if not defined in robots.txt file
This commit is contained in:
@@ -36,7 +36,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
$robotstxt = new Robotstxt ("", "domsearch");
|
||||
$res = $robotstxt->crawldelay ();
|
||||
$this->assertSame ($res, 3);
|
||||
$this->assertSame ($res, null);
|
||||
}
|
||||
|
||||
// Allow
|
||||
|
||||
Reference in New Issue
Block a user