Remove messages.inc, rebuildLanguage.php, writeMessagesArray.inc
[mediawiki.git] / tests / phpunit / includes / FauxRequestTest.php
blob745a5b42f151913a2a826d35eb2f78ceca8982a6
1 <?php
3 class FauxRequestTest extends MediaWikiTestCase {
4 /**
5 * @covers FauxRequest::setHeader
6 * @covers FauxRequest::getHeader
7 */
8 public function testGetSetHeader() {
9 $value = 'test/test';
11 $request = new FauxRequest();
12 $request->setHeader( 'Content-Type', $value );
14 $this->assertEquals( $request->getHeader( 'Content-Type' ), $value );
15 $this->assertEquals( $request->getHeader( 'CONTENT-TYPE' ), $value );
16 $this->assertEquals( $request->getHeader( 'content-type' ), $value );