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