public function testGetData() { $this->request->setAccountType('M'); $this->request->setApplyAVSCV2(2); $this->request->setApply3DSecure(3); $this->request->setDescription('food'); $this->request->setClientIp('127.0.0.1'); $this->request->setReferrerId('3F7A4119-8671-464F-A091-9E59EB47B80C'); $this->request->setVendorData('Vendor secret codes'); $data = $this->request->getData(); $this->assertSame('M', $data['AccountType']); $this->assertSame('food', $data['Description']); $this->assertSame('12.00', $data['Amount']); $this->assertSame('GBP', $data['Currency']); $this->assertSame('123', $data['VendorTxCode']); $this->assertSame('127.0.0.1', $data['ClientIPAddress']); $this->assertSame(2, $data['ApplyAVSCV2']); $this->assertSame(3, $data['Apply3DSecure']); $this->assertSame('3F7A4119-8671-464F-A091-9E59EB47B80C', $data['ReferrerID']); $this->assertSame('Vendor secret codes', $data['VendorData']); }