@@ -25,7 +25,7 @@ test('', function () {
25
25
26
26
$ factory ->setProxy ('127.0.0.1/8 ' );
27
27
Assert::same ('23.75.45.200 ' , $ factory ->fromGlobals ()->getRemoteAddress ());
28
- Assert::same ( ' a23-75-45-200.deploy.static.akamaitechnologies.com ' , @$ factory ->fromGlobals ()->getRemoteHost ()); // deprecated
28
+ Assert::null ( @$ factory ->fromGlobals ()->getRemoteHost ()); // deprecated
29
29
30
30
$ url = $ factory ->fromGlobals ()->getUrl ();
31
31
Assert::same ('http ' , $ url ->getScheme ());
@@ -43,7 +43,7 @@ test('', function () {
43
43
44
44
$ factory ->setProxy ('127.0.0.3 ' );
45
45
Assert::same ('23.75.45.200 ' , $ factory ->fromGlobals ()->getRemoteAddress ());
46
- Assert::same ( ' a23-75-45-200.deploy.static.akamaitechnologies.com ' , @$ factory ->fromGlobals ()->getRemoteHost ()); // deprecated
46
+ Assert::null ( @$ factory ->fromGlobals ()->getRemoteHost ()); // deprecated
47
47
48
48
$ url = $ factory ->fromGlobals ()->getUrl ();
49
49
Assert::same (8080 , $ url ->getPort ());
@@ -62,7 +62,7 @@ test('', function () {
62
62
63
63
$ factory ->setProxy ('127.0.0.3 ' );
64
64
Assert::same ('2001:db8:cafe::17 ' , $ factory ->fromGlobals ()->getRemoteAddress ());
65
- Assert::same ( ' 2001:db8:cafe::17 ' , @$ factory ->fromGlobals ()->getRemoteHost ()); // deprecated
65
+ Assert::null ( @$ factory ->fromGlobals ()->getRemoteHost ()); // deprecated
66
66
67
67
$ url = $ factory ->fromGlobals ()->getUrl ();
68
68
Assert::same ('[2001:db8:cafe::18] ' , $ url ->getHost ());
@@ -79,7 +79,7 @@ test('', function () {
79
79
80
80
$ factory ->setProxy ('127.0.0.3 ' );
81
81
Assert::same ('2001:db8:cafe::17 ' , $ factory ->fromGlobals ()->getRemoteAddress ());
82
- Assert::same ( ' 2001:db8:cafe::17 ' , @$ factory ->fromGlobals ()->getRemoteHost ()); // deprecated
82
+ Assert::null ( @$ factory ->fromGlobals ()->getRemoteHost ()); // deprecated
83
83
84
84
$ url = $ factory ->fromGlobals ()->getUrl ();
85
85
Assert::same (47832 , $ url ->getPort ());
0 commit comments