File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Symfony/Bundle/FrameworkBundle Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public function getKernel()
66
66
*/
67
67
public function getProfile ()
68
68
{
69
- if (!$ this ->kernel ->getContainer ()->has ('profiler ' )) {
69
+ if (null === $ this -> response || !$ this ->kernel ->getContainer ()->has ('profiler ' )) {
70
70
return false ;
71
71
}
72
72
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ public function testProfilerIsDisabled($insulate)
28
28
29
29
// enable the profiler for the next request
30
30
$ client ->enableProfiler ();
31
- $ crawler = $ client ->request ( ' GET ' , ' /profiler ' );
32
- $ profile = $ client ->getProfile ( );
33
- $ this ->assertInternalType ('object ' , $ profile );
31
+ $ this -> assertFalse ( $ client ->getProfile () );
32
+ $ client ->request ( ' GET ' , ' /profiler ' );
33
+ $ this ->assertInternalType ('object ' , $ client -> getProfile () );
34
34
35
35
$ client ->request ('GET ' , '/profiler ' );
36
36
$ this ->assertFalse ($ client ->getProfile ());
You can’t perform that action at this time.
0 commit comments