File tree Expand file tree Collapse file tree
src/org/nameapi/client/services/email/emailnameparser
tests/functional/org/nameapi/client/services/email/emailnameparser Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 *
99 * Possible values are:
1010 *
11- * DEPARTMENT
12- * The email address belongs to a department, such as accounting@example.com.
13- *
14- * TECHNICAL
15- * It is a technical email address for the domain, such as hostmaster@example.com.
11+ * FUNCTIONAL
12+ * The email address belongs to a department (eg accounting@example.com) or is
13+ * technical (eg hostmaster@example.com).
1614 *
1715 * INITIALS
1816 * The email address contains a person's initials such as ab@example.com.
@@ -43,8 +41,7 @@ final class EmailAddressParsingResultType {
4341 private $ value = null ;
4442
4543 public function __construct ($ value ) {
46- if ($ value !=='DEPARTMENT '
47- && $ value !=='TECHNICAL '
44+ if ($ value !=='FUNCTIONAL '
4845 && $ value !=='INITIALS '
4946 && $ value !=='PERSON_NAME '
5047 && $ value !=='PSEUDONYM '
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function testParse_John_F_Doe() {
3131 public function testParse_webmaster () {
3232 $ emailNameParser = $ this ->makeServiceFactory ()->emailServices ()->emailNameParser ();
3333 $ result = $ emailNameParser ->parse ("webmaster@example.com " );
34- $ this ->assertEquals ('TECHNICAL ' , (string )$ result ->getResultType ());
34+ $ this ->assertEquals ('FUNCTIONAL ' , (string )$ result ->getResultType ());
3535 }
3636
3737}
You can’t perform that action at this time.
0 commit comments