@@ -69,8 +69,8 @@ public function testRoutingErrorIsNotExposedForProtectedResourceWhenLoggedInWith
69
69
*/
70
70
public function testSecurityConfigurationForSingleIPAddress ($ config )
71
71
{
72
- $ allowedClient = $ this ->createClient (array ('test_case ' => 'StandardFormLogin ' , 'root_config ' => $ config ), array (" REMOTE_ADDR " => " 10.10.10.10 " ));
73
- $ barredClient = $ this ->createClient (array ('test_case ' => 'StandardFormLogin ' , 'root_config ' => $ config ), array (" REMOTE_ADDR " => " 10.10.20.10 " ));
72
+ $ allowedClient = $ this ->createClient (array ('test_case ' => 'StandardFormLogin ' , 'root_config ' => $ config ), array (' REMOTE_ADDR ' => ' 10.10.10.10 ' ));
73
+ $ barredClient = $ this ->createClient (array ('test_case ' => 'StandardFormLogin ' , 'root_config ' => $ config ), array (' REMOTE_ADDR ' => ' 10.10.20.10 ' ));
74
74
75
75
$ this ->assertAllowed ($ allowedClient , '/secured-by-one-ip ' );
76
76
$ this ->assertRestricted ($ barredClient , '/secured-by-one-ip ' );
@@ -82,9 +82,9 @@ public function testSecurityConfigurationForSingleIPAddress($config)
82
82
*/
83
83
public function testSecurityConfigurationForMultipleIPAddresses ($ config )
84
84
{
85
- $ allowedClientA = $ this ->createClient (array ('test_case ' => 'StandardFormLogin ' , 'root_config ' => $ config ), array (" REMOTE_ADDR " => " 1.1.1.1 " ));
86
- $ allowedClientB = $ this ->createClient (array ('test_case ' => 'StandardFormLogin ' , 'root_config ' => $ config ), array (" REMOTE_ADDR " => " 2.2.2.2 " ));
87
- $ barredClient = $ this ->createClient (array ('test_case ' => 'StandardFormLogin ' , 'root_config ' => $ config ), array (" REMOTE_ADDR " => " 192.168.1.1 " ));
85
+ $ allowedClientA = $ this ->createClient (array ('test_case ' => 'StandardFormLogin ' , 'root_config ' => $ config ), array (' REMOTE_ADDR ' => ' 1.1.1.1 ' ));
86
+ $ allowedClientB = $ this ->createClient (array ('test_case ' => 'StandardFormLogin ' , 'root_config ' => $ config ), array (' REMOTE_ADDR ' => ' 2.2.2.2 ' ));
87
+ $ barredClient = $ this ->createClient (array ('test_case ' => 'StandardFormLogin ' , 'root_config ' => $ config ), array (' REMOTE_ADDR ' => ' 192.168.1.1 ' ));
88
88
89
89
$ this ->assertAllowed ($ allowedClientA , '/secured-by-two-ips ' );
90
90
$ this ->assertAllowed ($ allowedClientB , '/secured-by-two-ips ' );
0 commit comments