File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/Symfony/Component/HttpKernel/Tests Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \HttpKernel \Tests ;
13
13
14
+ use Symfony \Component \BrowserKit \Response as DomResponse ;
14
15
use Symfony \Component \HttpKernel \Client ;
15
16
use Symfony \Component \HttpKernel \HttpKernel ;
16
17
use Symfony \Component \HttpFoundation \Request ;
@@ -34,6 +35,7 @@ public function testDoRequest()
34
35
35
36
$ client ->request ('GET ' , '/ ' );
36
37
$ this ->assertEquals ('Request: / ' , $ client ->getResponse ()->getContent (), '->doRequest() uses the request handler to make the request ' );
38
+ $ this ->assertTrue ($ client ->getResponse () instanceof DomResponse, '->getResponse() returns a Symfony\Component\BrowserKit\Response instance ' );
37
39
38
40
$ client ->request ('GET ' , 'http://www.example.com/ ' );
39
41
$ this ->assertEquals ('Request: / ' , $ client ->getResponse ()->getContent (), '->doRequest() uses the request handler to make the request ' );
You can’t perform that action at this time.
0 commit comments