17
17
18
18
class DefaultAuthenticationFailureHandlerTest extends \PHPUnit_Framework_TestCase
19
19
{
20
- private $ httpKernel = null ;
21
-
22
- private $ httpUtils = null ;
23
-
24
- private $ logger = null ;
25
-
26
- private $ request = null ;
27
-
28
- private $ session = null ;
29
-
30
- private $ exception = null ;
20
+ private $ httpKernel ;
21
+ private $ httpUtils ;
22
+ private $ logger ;
23
+ private $ request ;
24
+ private $ session ;
25
+ private $ exception ;
31
26
32
27
protected function setUp ()
33
28
{
@@ -145,7 +140,7 @@ public function testFailurePathCanBeOverwritten()
145
140
public function testFailurePathCanBeOverwrittenWithRequest ()
146
141
{
147
142
$ this ->request ->expects ($ this ->once ())
148
- ->method ('get ' )->with ('_failure_path ' , null , false )
143
+ ->method ('get ' )->with ('_failure_path ' )
149
144
->will ($ this ->returnValue ('/auth/login ' ));
150
145
151
146
$ this ->httpUtils ->expects ($ this ->once ())
@@ -158,7 +153,7 @@ public function testFailurePathCanBeOverwrittenWithRequest()
158
153
public function testFailurePathCanBeOverwrittenWithNestedAttributeInRequest ()
159
154
{
160
155
$ this ->request ->expects ($ this ->once ())
161
- ->method ('get ' )->with ('_failure_path ' , null , false )
156
+ ->method ('get ' )->with ('_failure_path ' )
162
157
->will ($ this ->returnValue (array ('value ' => '/auth/login ' )));
163
158
164
159
$ this ->httpUtils ->expects ($ this ->once ())
@@ -173,7 +168,7 @@ public function testFailurePathParameterCanBeOverwritten()
173
168
$ options = array ('failure_path_parameter ' => '_my_failure_path ' );
174
169
175
170
$ this ->request ->expects ($ this ->once ())
176
- ->method ('get ' )->with ('_my_failure_path ' , null , false )
171
+ ->method ('get ' )->with ('_my_failure_path ' )
177
172
->will ($ this ->returnValue ('/auth/login ' ));
178
173
179
174
$ this ->httpUtils ->expects ($ this ->once ())
0 commit comments