Tests are now compliant with php-cs-fixer (CamelCase for method, phpdoc valid)

This commit is contained in:
2023-04-13 22:22:46 +02:00
parent b017700d0a
commit 273db5f183
51 changed files with 3926 additions and 3637 deletions

View File

@@ -1,20 +1,22 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
/**
* DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
use Domframework\Robotstxt;
/** Test the Robotstxt file
*/
/**
* Test the Robotstxt file
*/
class RobotstxtTest extends \PHPUnit_Framework_TestCase
{
// Empty Robots
// Empty Robots
public function testConstruct1()
{
$robotstxt = new Robotstxt("", "domsearch");
@@ -25,13 +27,13 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
{
$robotstxt = new Robotstxt("", "domsearch");
$res = $robotstxt->disallow();
$this->assertSame($res, array ());
$this->assertSame($res, []);
}
public function testConstruct3()
{
$robotstxt = new Robotstxt("", "domsearch");
$res = $robotstxt->sitemaps();
$this->assertSame($res, array ());
$this->assertSame($res, []);
}
public function testConstruct4()
{
@@ -259,7 +261,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
// Tests like http://www.robotstxt.org/norobots-rfc.txt
public function testRfcUnhipbot1()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -279,7 +281,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"unhipbot"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/"),
false
@@ -287,7 +289,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcUnhipbot2()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -307,7 +309,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"unhipbot"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/index.html"),
false
@@ -315,7 +317,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcUnhipbot3()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -335,7 +337,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"unhipbot"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/robots.txt"),
true
@@ -343,7 +345,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcUnhipbot4()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -363,7 +365,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"unhipbot"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/server.html"),
false
@@ -371,7 +373,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcUnhipbot5()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -391,7 +393,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"unhipbot"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/services/fast.html"),
false
@@ -399,7 +401,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcUnhipbot6()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -419,7 +421,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"unhipbot"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/services/slow.html"),
false
@@ -427,7 +429,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcUnhipbot7()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -447,7 +449,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"unhipbot"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/orgo.gif"),
false
@@ -455,7 +457,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcUnhipbot8()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -475,7 +477,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"unhipbot"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/org/about.html"),
false
@@ -483,7 +485,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcUnhipbot9()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -503,7 +505,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"unhipbot"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/org/plans.html"),
false
@@ -511,7 +513,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcUnhipbot10()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -531,7 +533,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"unhipbot"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/~jim/jim.html"),
false
@@ -539,7 +541,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcUnhipbot11()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -559,7 +561,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"unhipbot"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/~mak/mak.html"),
false
@@ -567,7 +569,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcWebcrawler1()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -587,7 +589,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"webcrawler"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/"),
true
@@ -595,7 +597,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcWebcrawler2()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -615,7 +617,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"webcrawler"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/index.html"),
true
@@ -623,7 +625,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcWebcrawler3()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -643,7 +645,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"webcrawler"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/robots.txt"),
true
@@ -651,7 +653,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcWebcrawler4()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -671,7 +673,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"webcrawler"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/server.html"),
true
@@ -679,7 +681,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcWebcrawler5()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -699,7 +701,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"webcrawler"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/services/fast.html"),
true
@@ -707,7 +709,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcWebcrawler6()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -727,7 +729,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"webcrawler"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/services/slow.html"),
true
@@ -735,7 +737,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcWebcrawler7()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -755,7 +757,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"webcrawler"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/orgo.gif"),
true
@@ -763,7 +765,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcWebcrawler8()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -783,7 +785,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"webcrawler"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/org/about.html"),
true
@@ -791,7 +793,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcWebcrawler9()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -811,7 +813,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"webcrawler"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/org/plans.html"),
true
@@ -819,7 +821,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcWebcrawler10()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -839,7 +841,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"webcrawler"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/~jim/jim.html"),
true
@@ -847,7 +849,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcWebcrawler11()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -867,7 +869,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"webcrawler"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/~mak/mak.html"),
true
@@ -875,7 +877,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcExcite1()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -895,7 +897,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"excite"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/"),
true
@@ -903,7 +905,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcExcite2()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -923,7 +925,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"excite"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/index.html"),
true
@@ -931,7 +933,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcExcite3()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -951,7 +953,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"excite"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/robots.txt"),
true
@@ -959,7 +961,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcExcite4()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -979,7 +981,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"excite"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/server.html"),
true
@@ -987,7 +989,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcExcite5()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1007,7 +1009,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"excite"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/services/fast.html"),
true
@@ -1015,7 +1017,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcExcite6()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1035,7 +1037,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"excite"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/services/slow.html"),
true
@@ -1043,7 +1045,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcExcite7()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1063,7 +1065,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"excite"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/orgo.gif"),
true
@@ -1071,7 +1073,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcExcite8()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1091,7 +1093,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"excite"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/org/about.html"),
true
@@ -1099,7 +1101,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcExcite9()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1119,7 +1121,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"excite"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/org/plans.html"),
true
@@ -1127,7 +1129,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcExcite10()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1147,7 +1149,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"excite"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/~jim/jim.html"),
true
@@ -1155,7 +1157,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcExcite11()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1175,7 +1177,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"excite"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/~mak/mak.html"),
true
@@ -1183,7 +1185,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcOther1()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1203,12 +1205,12 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"other"
);
// }}}
// }}}
$this->assertSame($robotstxt->URLAllow("http://www.fict.org/"), false);
}
public function testRfcOther2()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1228,7 +1230,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"other"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/index.html"),
false
@@ -1236,7 +1238,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcOther3()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1256,7 +1258,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"other"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/robots.txt"),
true
@@ -1264,7 +1266,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcOther4()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1284,7 +1286,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"other"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/server.html"),
true
@@ -1292,7 +1294,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcOther5()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1312,7 +1314,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"other"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/services/fast.html"),
true
@@ -1320,7 +1322,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcOther6()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1340,7 +1342,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"other"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/services/slow.html"),
true
@@ -1348,7 +1350,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcOther7()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1368,7 +1370,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"other"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/orgo.gif"),
false
@@ -1376,7 +1378,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcOther8()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1396,7 +1398,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"other"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/org/about.html"),
true
@@ -1404,7 +1406,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcOther9()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1424,7 +1426,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"other"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/org/plans.html"),
false
@@ -1432,7 +1434,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcOther10()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1452,7 +1454,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"other"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/~jim/jim.html"),
false
@@ -1460,7 +1462,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
}
public function testRfcOther11()
{
// {{{
// {{{
$robotstxt = new Robotstxt(
"# /robots.txt for http://www.fict.org/
# comments to webmaster@fict.org
@@ -1480,7 +1482,7 @@ class RobotstxtTest extends \PHPUnit_Framework_TestCase
Disallow: /",
"other"
);
// }}}
// }}}
$this->assertSame(
$robotstxt->URLAllow("http://www.fict.org/~mak/mak.html"),
true