File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
use Symfony \Component \HttpFoundation \Request ;
4
4
5
- ini_set ('display_errors ' , 'On ' );
6
- error_reporting (E_ALL );
7
-
8
5
require_once __DIR__ .'/../../bootstrap/bootstrap.php ' ;
9
6
10
7
$ request = Request::createFromGlobals ();
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ abstract class TestKernel extends Kernel
34
34
* concrete kernel configure itself using the abstracvt
35
35
* configure() command.
36
36
*/
37
- public function init ( )
37
+ public function __construct ( $ env , $ debug )
38
38
{
39
39
$ this ->registerBundleSet ('default ' , array (
40
40
'Symfony\Bundle\FrameworkBundle\FrameworkBundle ' ,
@@ -84,7 +84,7 @@ public function init()
84
84
'FOS\JsRoutingBundle\FOSJsRoutingBundle ' ,
85
85
));
86
86
87
- parent ::init ( );
87
+ parent ::__construct ( $ env , $ debug );
88
88
$ this ->configure ();
89
89
}
90
90
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public function setUp()
21
21
{
22
22
$ this ->kernel = $ this ->getMockBuilder (
23
23
'Symfony\Cmf\Component\Testing\HttpKernel\TestKernel '
24
- )->disableOriginalConstructor ( )->getMockForAbstractClass ();
24
+ )->setConstructorArgs ( array ( ' test ' , true ) )->getMockForAbstractClass ();
25
25
$ this ->mockBundle = $ this ->getMock (
26
26
'Symfony\Component\HttpKernel\Bundle\BundleInterface '
27
27
);
You can’t perform that action at this time.
0 commit comments