X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FFauxRequestTest.php;h=9e7d68026841f81cc7640078493d410e71b87c0c;hp=9fe694da039f5de2ef7b6bd01520652ba900a99c;hb=b4925e34d0b4b3128f9136306196e66ec14da52d;hpb=dc1632d58ee3b016697667bfc003338141bc3ce7 diff --git a/tests/phpunit/includes/FauxRequestTest.php b/tests/phpunit/includes/FauxRequestTest.php index 9fe694da03..9e7d680268 100644 --- a/tests/phpunit/includes/FauxRequestTest.php +++ b/tests/phpunit/includes/FauxRequestTest.php @@ -2,7 +2,11 @@ use MediaWiki\Session\SessionManager; -class FauxRequestTest extends PHPUnit_Framework_TestCase { +class FauxRequestTest extends PHPUnit\Framework\TestCase { + + use MediaWikiCoversValidator; + use PHPUnit4And6Compat; + /** * @covers FauxRequest::__construct */ @@ -39,13 +43,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',