Esempio n. 1
0
 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());
 }