public function testUri() { // Test data $uri = 'localhostofthingsandstuff'; $query = '?q=search'; $request = new Request(); $request->server()->set('REQUEST_URI', $uri . $query); $this->assertSame($uri . $query, $request->uri()); }