示例#1
0
 public function testQueryCanChange()
 {
     $r = new Request('GET', 'http://www.foo.com?baz=bar');
     $r->setQuery(new Query(['foo' => 'bar']));
     $this->assertEquals('foo=bar', $r->getQuery());
 }