Пример #1
0
 function testRawJsonBodyIsIgnoredInPostRequestIfPostParamsAreSet()
 {
     $r = new Bullet\Request('POST', '/users/129.json', array('id' => '123'), array('Accept' => 'application/json'), '{"id":"124"}');
     $this->assertEquals('123', $r->id);
     $this->assertEquals('124', $r->json()['id']);
     //...but it still returns the decode raw() data correctly
 }