public function testQueryIsMutable() { $r = new Request('GET', 'http://www.foo.com?baz=bar'); $this->assertEquals('baz=bar', $r->getQuery()); $this->assertInstanceOf('GuzzleHttp5Legacy\\Query', $r->getQuery()); $r->getQuery()->set('hi', 'there'); $this->assertEquals('/?baz=bar&hi=there', $r->getResource()); }