예제 #1
0
 /**
  * @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));
 }
예제 #2
0
 /**
  * @covers ::setAdministrativeArea
  * @covers ::getAdministrativeArea
  */
 public function testSetGetAdministrativeArea()
 {
     $this->address->setAdministrativeArea('foo');
     $this->assertSame('foo', $this->address->getAdministrativeArea());
 }