public function testUnknownResponseCode() { $data = array('Data' => 'responseCode=AA'); $response = new CompletePurchaseResponse($this->getMockRequest(), $data); $this->assertFalse($response->isSuccessful()); $this->assertSame('AA', $response->getCode()); $this->assertSame('FAILED', $response->getStatus()); $this->assertNull($response->getMessage()); }
public function testEmpty() { $response = new CompletePurchaseResponse($this->getMockRequest(), array()); $this->assertFalse($response->isSuccessful()); $this->assertNull($response->getCode()); }