Example #1
0
 /**
  * @test
  */
 public function itShouldBeASuccessfulEmptyResponse()
 {
     $payload = array('result' => array('status' => array('code' => 'S0105', 'type' => 'success')));
     $response = new Response($payload);
     $this->assertTrue($response->isSuccessful());
     $this->assertEquals('S0105', $response->getStatusCode());
     $this->assertEquals('success', $response->getStatusType());
     $this->assertFalse($response->getStatusReturnObject());
     $this->assertEquals($payload, $response->getPayload());
 }