summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/FauxRequestTest.php
blob: 745a5b42f151913a2a826d35eb2f78ceca8982a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

class FauxRequestTest extends MediaWikiTestCase {
	/**
	 * @covers FauxRequest::setHeader
	 * @covers FauxRequest::getHeader
	 */
	public function testGetSetHeader() {
		$value = 'test/test';

		$request = new FauxRequest();
		$request->setHeader( 'Content-Type', $value );

		$this->assertEquals( $request->getHeader( 'Content-Type' ), $value );
		$this->assertEquals( $request->getHeader( 'CONTENT-TYPE' ), $value );
		$this->assertEquals( $request->getHeader( 'content-type' ), $value );
	}
}