Skip to content

Commit

Permalink
Clean useless deprecation silencing
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Dec 10, 2015
1 parent 4cde2d1 commit 9953550
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/FrameworkBundle/Client.php
Expand Up @@ -165,7 +165,7 @@ protected function getScript($request)
$code = <<<EOF
<?php
error_reporting($errorReporting & ~E_USER_DEPRECATED);
error_reporting($errorReporting);
if ('$autoloader') {
require_once '$autoloader';
Expand Down
Expand Up @@ -20,11 +20,6 @@
*/
class LegacyRenderTokenParserTest extends TestCase
{
protected function setUp()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
}

/**
* @dataProvider getTestsForRender
*/
Expand Down
4 changes: 0 additions & 4 deletions src/Symfony/Component/Form/Tests/AbstractLayoutTest.php
Expand Up @@ -127,8 +127,6 @@ abstract protected function setTheme(FormView $view, array $themes);
*/
public function testLegacyEnctype()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

$form = $this->factory->createNamedBuilder('name', 'form')
->add('file', 'file')
->getForm();
Expand All @@ -141,8 +139,6 @@ public function testLegacyEnctype()
*/
public function testLegacyNoEnctype()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

$form = $this->factory->createNamedBuilder('name', 'form')
->add('text', 'text')
->getForm();
Expand Down
Expand Up @@ -25,7 +25,6 @@ public static function setUpBeforeClass()
{
ini_set('session.save_handler', 'files');
ini_set('session.save_path', sys_get_temp_dir());
ini_set('error_reporting', -1 & ~E_USER_DEPRECATED);
}

protected function setUp()
Expand Down
Expand Up @@ -37,8 +37,6 @@ class LegacyBindRequestListenerTest extends \PHPUnit_Framework_TestCase

protected function setUp()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

$path = tempnam(sys_get_temp_dir(), 'sf2');
touch($path);

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Client.php
Expand Up @@ -105,7 +105,7 @@ protected function getScript($request)
$code = <<<EOF
<?php
error_reporting($errorReporting & ~E_USER_DEPRECATED);
error_reporting($errorReporting);
require_once '$requirePath';
Expand Down
2 changes: 0 additions & 2 deletions src/Symfony/Component/Locale/Tests/LocaleTest.php
Expand Up @@ -22,8 +22,6 @@ class LocaleTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

\Locale::setDefault('en');
}

Expand Down
5 changes: 0 additions & 5 deletions src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php
Expand Up @@ -18,11 +18,6 @@
*/
class StubLocaleTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
}

public function testGetCurrenciesData()
{
$currencies = StubLocale::getCurrenciesData('en');
Expand Down
2 changes: 0 additions & 2 deletions src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php
Expand Up @@ -51,8 +51,6 @@ public function getValidParameters()
*/
public function testLegacyGetPattern()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

$route = new Route(array('value' => '/Blog'));
$this->assertEquals($route->getPattern(), '/Blog');
}
Expand Down
2 changes: 0 additions & 2 deletions src/Symfony/Component/Routing/Tests/RouteTest.php
Expand Up @@ -206,8 +206,6 @@ public function testCompile()
*/
public function testLegacyPattern()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

$route = new Route('/{foo}');
$this->assertEquals('/{foo}', $route->getPattern());

Expand Down

0 comments on commit 9953550

Please sign in to comment.