test: coverage recording now needs to be explicit
[mediawiki.git] / tests / phpunit / includes / FauxRequestTest.php
blobdfb0f13ca5093b594e842ab2500dc0c24d5619f7
1 <?php
3 class FauxRequestTest extends MediaWikiTestCase {
5 function testGetSetHeader() {
6 $value = 'test/test';
8 $request = new FauxRequest();
9 $request->setHeader( 'Content-Type', $value );
11 $this->assertEquals( $request->getHeader( 'Content-Type' ), $value );
12 $this->assertEquals( $request->getHeader( 'CONTENT-TYPE' ), $value );
13 $this->assertEquals( $request->getHeader( 'content-type' ), $value );