public function testSetMinimalArrayBody() { $body = array('slip_type' => 'payment', 'customer' => array('key' => 'LDFKHSLFDHFL'), 'transactions' => array(array('currency' => 'EUR', 'amount' => '123.34'))); $this->request->setBody($body); $this->assertEquals(json_encode($body), $this->request->getBody()); }