MediaWiki
REL1_22
|
00001 <?php 00002 00003 class FauxRequestTest extends MediaWikiTestCase { 00004 00005 public function testGetSetHeader() { 00006 $value = 'test/test'; 00007 00008 $request = new FauxRequest(); 00009 $request->setHeader( 'Content-Type', $value ); 00010 00011 $this->assertEquals( $request->getHeader( 'Content-Type' ), $value ); 00012 $this->assertEquals( $request->getHeader( 'CONTENT-TYPE' ), $value ); 00013 $this->assertEquals( $request->getHeader( 'content-type' ), $value ); 00014 } 00015 }