Code Duplication    Length = 15-15 lines in 2 locations

tests/lib/appframework/http/RequestTest.php 2 locations

@@ 651-665 (lines=15) @@
648
		$this->assertSame('http', $request->getServerProtocol());
649
	}
650
651
	public function testGetServerProtocolDefault() {
652
		$this->config
653
			->expects($this->once())
654
			->method('getSystemValue')
655
			->with('overwriteprotocol')
656
			->will($this->returnValue(''));
657
658
		$request = new Request(
659
			[],
660
			$this->secureRandom,
661
			$this->config,
662
			$this->stream
663
		);
664
		$this->assertSame('http', $request->getServerProtocol());
665
	}
666
667
	public function testGetServerProtocolBehindLoadBalancers() {
668
		$this->config
@@ 964-978 (lines=15) @@
961
		$this->assertSame('',  $request->getServerHost());
962
	}
963
964
	public function testGetOverwriteHostDefaultNull() {
965
		$this->config
966
			->expects($this->once())
967
			->method('getSystemValue')
968
			->with('overwritehost')
969
			->will($this->returnValue(''));
970
		$request = new Request(
971
			[],
972
			$this->secureRandom,
973
			$this->config,
974
			$this->stream
975
		);
976
977
		$this->assertNull(self::invokePrivate($request, 'getOverwriteHost'));
978
	}
979
980
	public function testGetOverwriteHostWithOverwrite() {
981
		$this->config