/**
  * @test
  */
 public function itShouldNotValidateEmptyString()
 {
     $this->assertEmpty(EmailAddress::fromString('')->toString());
 }
 /**
  * @param array $details
  * @return Customer
  */
 public static function fromArray(array $details)
 {
     return new static(array_key_exists('merchant_customer_id', $details) ? MerchantCustomerId::fromString($details['merchant_customer_id']) : null, array_key_exists('email_address', $details) ? EmailAddress::fromString($details['email_address']) : null, array_key_exists('first_name', $details) ? FirstName::fromString($details['first_name']) : null, array_key_exists('last_name', $details) ? LastName::fromString($details['last_name']) : null, array_key_exists('address_type', $details) ? AddressType::fromString($details['address_type']) : null, array_key_exists('address', $details) ? Address::fromString($details['address']) : null, array_key_exists('postal_code', $details) ? PostalCode::fromString($details['postal_code']) : null, array_key_exists('housenumber', $details) ? Housenumber::fromString($details['housenumber']) : null, array_key_exists('country', $details) ? Country::fromString($details['country']) : null, array_key_exists('phone_numbers', $details) ? PhoneNumbers::fromArray($details['phone_numbers']) : null, array_key_exists('locale', $details) ? Locale::fromString($details['locale']) : null);
 }