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=9fe694da039f5de2ef7b6bd01520652ba900a99c;hb=2ab7ae9d24009f8cd7555cdbd15c9a852b1cc4db;hpb=237d3271fd313ebe09858a5c442a91216a7b61cf diff --git a/tests/phpunit/includes/FauxRequestTest.php b/tests/phpunit/includes/FauxRequestTest.php index 9fe694da03..f6ccbc78a8 100644 --- a/tests/phpunit/includes/FauxRequestTest.php +++ b/tests/phpunit/includes/FauxRequestTest.php @@ -3,6 +3,9 @@ use MediaWiki\Session\SessionManager; class FauxRequestTest extends PHPUnit_Framework_TestCase { + + use MediaWikiCoversValidator; + /** * @covers FauxRequest::__construct */ @@ -39,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',