Example #1
0
 public function testRawRequest()
 {
     $req = $this->object->raw();
     $req->uri("testindex/_search")->method("post")->body('{"query":{"match_all":{"boost":0.5}}}');
     $data = $req->toJSON();
     $expectedData = '{"query":{"match_all":{"boost":0.5}}}';
     $this->assertEquals($expectedData, $data);
     $resp = $req->execute();
     print_r($resp);
 }