Skip to content

Commit 90a7835

Browse files
committed
Do not override error reporting configuration
- And fix call to deprecated Kernel::init
1 parent ee435a3 commit 90a7835

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

resources/web/app_test.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
use Symfony\Component\HttpFoundation\Request;
44

5-
ini_set('display_errors', 'On');
6-
error_reporting(E_ALL);
7-
85
require_once __DIR__.'/../../bootstrap/bootstrap.php';
96

107
$request = Request::createFromGlobals();

src/HttpKernel/TestKernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class TestKernel extends Kernel
3434
* concrete kernel configure itself using the abstracvt
3535
* configure() command.
3636
*/
37-
public function init()
37+
public function __construct($env, $debug)
3838
{
3939
$this->registerBundleSet('default', array(
4040
'Symfony\Bundle\FrameworkBundle\FrameworkBundle',
@@ -84,7 +84,7 @@ public function init()
8484
'FOS\JsRoutingBundle\FOSJsRoutingBundle',
8585
));
8686

87-
parent::init();
87+
parent::__construct($env, $debug);
8888
$this->configure();
8989
}
9090

tests/HttpKernel/TestKernelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function setUp()
2121
{
2222
$this->kernel = $this->getMockBuilder(
2323
'Symfony\Cmf\Component\Testing\HttpKernel\TestKernel'
24-
)->disableOriginalConstructor()->getMockForAbstractClass();
24+
)->setConstructorArgs(array('test', true))->getMockForAbstractClass();
2525
$this->mockBundle = $this->getMock(
2626
'Symfony\Component\HttpKernel\Bundle\BundleInterface'
2727
);

0 commit comments

Comments
 (0)