public function testGetData() { $data = array('Data' => 'orderId=6|transactionReference=5|authorisationId=123|paymentMeanBrand=IDEAL|responseCode=17'); $response = new CompletePurchaseResponse($this->getMockRequest(), $data); $this->assertSame("6", $response->getOrderId()); $this->assertSame("5", $response->getTransactionId()); $this->assertSame("123", $response->getAuthorisationId()); $this->assertSame("IDEAL", $response->getPaymentMethod()); $this->assertSame("CANCELLED", $response->getStatus()); $this->assertSame("Cancellation of payment by user.", $response->getMessage()); }