Example #1
0
 /**
  * @covers ::formatAddress
  */
 public function testFormatAddressThrowsExceptionOnInvalidFormat()
 {
     $this->setExpectedException('RuntimeException', 'Unrecognized character "]" in format pattern "%]"');
     $address = new Address();
     $address->setCountryCode('FR');
     $addressService = new AddressService($this->options);
     $addressService->formatAddress($address);
 }
Example #2
0
 /**
  * @covers ::setCountryCode
  * @covers ::getCountryCode
  */
 public function testSetGetCountryCode()
 {
     $this->address->setCountryCode('foo');
     $this->assertSame('foo', $this->address->getCountryCode());
 }