コード例 #1
0
ファイル: RequestTest.php プロジェクト: puzzlehttp/puzzle
 public function testQueryIsMutable()
 {
     $r = new puzzle_message_Request('GET', 'http://www.foo.com?baz=bar');
     $this->assertEquals('baz=bar', $r->getQuery());
     $this->assertInstanceOf('puzzle_Query', $r->getQuery());
     $r->getQuery()->set('hi', 'there');
     $this->assertEquals('/?baz=bar&hi=there', $r->getResource());
 }