/**
  * @covers ::formatAddress
  */
 public function testFormatAddressDoesNotAddCountryIfRequested()
 {
     $address = new Address();
     $address->setCountryCode('US');
     $address->setAddressLine1('foo street');
     $address->setLocality('bar');
     $address->setAdministrativeArea('CA');
     $address->setPostalCode('12345');
     $addressService = new AddressService($this->options);
     $this->assertSame(['foo street', 'bar CA 12345'], $addressService->formatAddress($address, false));
 }
Beispiel #2
0
 /**
  * @covers ::setPostalCode
  * @covers ::getPostalCode
  */
 public function testSetGetPostalCode()
 {
     $this->address->setPostalCode('foo');
     $this->assertSame('foo', $this->address->getPostalCode());
 }