public function testGetRequestUriWithoutOverwrite() { $this->config->expects($this->once())->method('getSystemValue')->with('overwritewebroot')->will($this->returnValue('')); $request = new Request(['server' => ['REQUEST_URI' => '/test.php']], $this->secureRandom, $this->getMock('\\OCP\\Security\\ICrypto'), $this->config, $this->stream); $this->assertSame('/test.php', $request->getRequestUri()); }