11
11
12
12
namespace Symfony \Component \Security \Http \Tests \EntryPoint ;
13
13
14
+ use Symfony \Component \HttpFoundation \Response ;
14
15
use Symfony \Component \Security \Http \EntryPoint \FormAuthenticationEntryPoint ;
15
16
use Symfony \Component \HttpKernel \HttpKernelInterface ;
16
17
@@ -19,7 +20,7 @@ class FormAuthenticationEntryPointTest extends \PHPUnit_Framework_TestCase
19
20
public function testStart ()
20
21
{
21
22
$ request = $ this ->getMock ('Symfony\Component\HttpFoundation\Request ' , array (), array (), '' , false , false );
22
- $ response = $ this -> getMock ( ' Symfony\Component\HttpFoundation\ Response' );
23
+ $ response = new Response ( );
23
24
24
25
$ httpKernel = $ this ->getMock ('Symfony\Component\HttpKernel\HttpKernelInterface ' );
25
26
$ httpUtils = $ this ->getMock ('Symfony\Component\Security\Http\HttpUtils ' );
@@ -39,7 +40,7 @@ public function testStartWithUseForward()
39
40
{
40
41
$ request = $ this ->getMock ('Symfony\Component\HttpFoundation\Request ' , array (), array (), '' , false , false );
41
42
$ subRequest = $ this ->getMock ('Symfony\Component\HttpFoundation\Request ' , array (), array (), '' , false , false );
42
- $ response = new \ Symfony \ Component \ HttpFoundation \ Response ('' , 200 );
43
+ $ response = new Response ('' , 200 );
43
44
44
45
$ httpUtils = $ this ->getMock ('Symfony\Component\Security\Http\HttpUtils ' );
45
46
$ httpUtils
0 commit comments