@@ -69,8 +69,8 @@ public function testRoutingErrorIsNotExposedForProtectedResourceWhenLoggedInWith
6969 */
7070 public function testSecurityConfigurationForSingleIPAddress ($ config )
7171 {
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 ' ));
7474
7575 $ this ->assertAllowed ($ allowedClient , '/secured-by-one-ip ' );
7676 $ this ->assertRestricted ($ barredClient , '/secured-by-one-ip ' );
@@ -82,9 +82,9 @@ public function testSecurityConfigurationForSingleIPAddress($config)
8282 */
8383 public function testSecurityConfigurationForMultipleIPAddresses ($ config )
8484 {
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 ' ));
8888
8989 $ this ->assertAllowed ($ allowedClientA , '/secured-by-two-ips ' );
9090 $ this ->assertAllowed ($ allowedClientB , '/secured-by-two-ips ' );
0 commit comments