/** * Tests the population of a billing address for the Address Verification Service. */ public function testAddAddressVerificationServiceDetails5() { $addressLine = "30 Fake St"; $postcode = ""; $country = "GB"; $expectedBillingCode = "|30"; $request = new PaymentRequest(); $request->addAddressVerificationServiceDetails($addressLine, $postcode, $country); $addresses = $request->getTssInfo()->getAddresses(); $this->assertEquals($expectedBillingCode, $addresses[0]->getCode()); $this->assertEquals(AddressType::BILLING, $addresses[0]->getType()); $this->assertEquals($country, $addresses[0]->getCountry()); }