X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FFauxRequestTest.php;h=f6ccbc78a8f5a119ade53f9ea647b50f7f7e010b;hp=e3713ab7fe72cb256bcf0e298fa4bb265e912bd7;hb=827c6bfa416d9d0de8cc8e22f9f3fa36d8129d44;hpb=1827c891f549e3163d9e87390c6c6e939e8cf36b diff --git a/tests/phpunit/includes/FauxRequestTest.php b/tests/phpunit/includes/FauxRequestTest.php index e3713ab7fe..f6ccbc78a8 100644 --- a/tests/phpunit/includes/FauxRequestTest.php +++ b/tests/phpunit/includes/FauxRequestTest.php @@ -1,6 +1,11 @@ getEmptySession( new FauxRequest( [] ) ); + $this->assertInstanceOf( + FauxRequest::class, + new FauxRequest( [], false, $session ) + ); + } + /** * @covers FauxRequest::getText */ @@ -26,13 +42,19 @@ class FauxRequestTest extends PHPUnit_Framework_TestCase { $this->assertEquals( '', $req->getText( 'z' ) ); } - // Integration test for parent method. + /** + * Integration test for parent method + * @covers FauxRequest::getVal + */ public function testGetVal() { $req = new FauxRequest( [ 'crlf' => "A\r\nb" ] ); $this->assertSame( "A\r\nb", $req->getVal( 'crlf' ), 'CRLF' ); } - // Integration test for parent method. + /** + * Integration test for parent method + * @covers FauxRequest::getRawVal + */ public function testGetRawVal() { $req = new FauxRequest( [ 'x' => 'Value',