assertEquals('US', $address->getCountryCode()); $this->assertEquals('CA', $address->getAdministrativeArea()); $this->assertEquals('Mountain View', $address->getLocality()); $this->assertEquals('MV', $address->getDependentLocality()); $this->assertEquals('94043', $address->getPostalCode()); $this->assertEquals('94044', $address->getSortingCode()); $this->assertEquals('1600 Amphitheatre Parkway', $address->getAddressLine1()); $this->assertEquals('Google Bldg 41', $address->getAddressLine2()); $this->assertEquals('Google Inc.', $address->getOrganization()); $this->assertEquals('John', $address->getGivenName()); $this->assertEquals('Smith', $address->getFamilyName()); $this->assertEquals('en', $address->getLocale()); } /** * @covers ::getCountryCode * @covers ::withCountryCode */ public function testCountryCode() { $address = (new Address())->withCountryCode('US'); $this->assertEquals('US', $address->getCountryCode()); } /** * @covers ::getAdministrativeArea * @covers ::withAdministrativeArea */ public function testAdministrativeArea() { $address = (new Address())->withAdministrativeArea('CA'); $this->assertEquals('CA', $address->getAdministrativeArea()); } /** * @covers ::getLocality * @covers ::withLocality */ public function testLocality() { $address = (new Address())->withLocality('Mountain View'); $this->assertEquals('Mountain View', $address->getLocality()); } /** * @covers ::getDependentLocality * @covers ::withDependentLocality */ public function testDependentLocality() { $address = (new Address())->withDependentLocality('Mountain View'); $this->assertEquals('Mountain View', $address->getDependentLocality()); } /** * @covers ::getPostalCode * @covers ::withPostalCode */ public function testPostalCode() { $address = (new Address())->withPostalCode('94043'); $this->assertEquals('94043', $address->getPostalCode()); } /** * @covers ::getSortingCode * @covers ::withSortingCode */ public function testSortingCode() { $address = (new Address())->withSortingCode('94043'); $this->assertEquals('94043', $address->getSortingCode()); } /** * @covers ::getAddressLine1 * @covers ::withAddressLine1 */ public function testAddressLine1() { $address = (new Address())->withAddressLine1('1600 Amphitheatre Parkway'); $this->assertEquals('1600 Amphitheatre Parkway', $address->getAddressLine1()); } /** * @covers ::getAddressLine2 * @covers ::withAddressLine2 */ public function testAddressLine2() { $address = (new Address())->withAddressLine2('Google Bldg 41'); $this->assertEquals('Google Bldg 41', $address->getAddressLine2()); } /** * @covers ::getOrganization * @covers ::withOrganization */ public function testOrganization() { $address = (new Address())->withOrganization('Google Inc.'); $this->assertEquals('Google Inc.', $address->getOrganization()); } /** * @covers ::getGivenName * @covers ::withGivenName */ public function testGivenName() { $address = (new Address())->withGivenName('John'); $this->assertEquals('John', $address->getGivenName()); } /** * @covers ::getAdditionalName * @covers ::withAdditionalName */ public function testAdditionalName() { $address = (new Address())->withAdditionalName('L.'); $this->assertEquals('L.', $address->getAdditionalName()); } /** * @covers ::getFamilyName * @covers ::withFamilyName */ public function testFamilyName() { $address = (new Address())->withFamilyName('Smith'); $this->assertEquals('Smith', $address->getFamilyName()); } /** * @covers ::getLocale * @covers ::withLocale */ public function testLocale() { $address = (new Address())->withLocale('en'); $this->assertEquals('en', $address->getLocale()); } } __halt_compiler();----SIGNATURE:----J/Ibueab/EWfsEhdRYejOrsci5CaHobP1665jHWr/UjHYroXfvf8ZNd6o2Mc9dQC1abxQGhOnv8Zj7FZC811KhxW5CV1eg0PcNren+tFFfjqdED1c93nC4r6Om23uTdupWSFU9IY34NS2K87i6Li7d3nt1s/RpIVtM639MJikgb610nDSySlMo8L7ukgcgCS4X+2dBVLkLdOz4tGQjlXJvbtAu7gucu4FAqKC8tZ3orcMyPFMWBFXtbzjafZguY3POK7tSY0i/jRzbZlM5YBcYD73+GFHPqTGENmv1CmTJzz9Vhj0jDDASnwsfO3WcSRoe9HC2+eeOLFha/3HIRhIOKsY1IYgn4K+2VkbAlOpORjffhDFVxhYT/xRuFLu0UIJTPyya1h7ql9FiArYGNIZnDdJQ2b2yH7Obctdx0i1J4KRS0Ze9f80zDUsZ8/aSOwcQ7uqWARYYIfxbAU+RFRk3agIVHD0zWSJJW4JRA37P4nLU4cxf3KVHECEcQQf5bcEkvO2lEq0pIacRHta1AZv2nfB97YwH46DVFrBpE4ChjLy72fvUCUHX9jdJKoySWE0DA7QmKXHU3pNcdXa3pz6XErKGdfoe0WnejGi5ATH5yFJ4jp0RVb9FYScfUZsOj2/SpUVCbS8g/uYQPWKm8ntj9j1ej1xT9KACXxWEl5zgc=----ATTACHMENT:----MjEyOTQ1MTU3OTMzNzUyNSAzMjAzMjQ3MjIwMTM3Mjk4IDkxODE2MDc3MzQ0Nzc1MDE=