Example #1
0
 public function testProcessRequestData()
 {
     $request = new RequestStub($this->method, $this->caller);
     $body = json_encode(array('bla' => true));
     $process = $request->processRequestData((object) ['body' => $body], function ($data) {
         return $data;
     });
     $this->assertEquals(json_decode($body, true), $process);
 }