Clean useless deprecation silencing

This commit is contained in:
Nicolas Grekas 2015-12-10 15:12:08 +01:00
parent 4cde2d1e33
commit 99535506e8
10 changed files with 2 additions and 25 deletions

View File

@ -165,7 +165,7 @@ class Client extends BaseClient
$code = <<<EOF $code = <<<EOF
<?php <?php
error_reporting($errorReporting & ~E_USER_DEPRECATED); error_reporting($errorReporting);
if ('$autoloader') { if ('$autoloader') {
require_once '$autoloader'; require_once '$autoloader';

View File

@ -20,11 +20,6 @@ use Symfony\Bundle\TwigBundle\Node\RenderNode;
*/ */
class LegacyRenderTokenParserTest extends TestCase class LegacyRenderTokenParserTest extends TestCase
{ {
protected function setUp()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
}
/** /**
* @dataProvider getTestsForRender * @dataProvider getTestsForRender
*/ */

View File

@ -127,8 +127,6 @@ abstract class AbstractLayoutTest extends \Symfony\Component\Form\Test\FormInteg
*/ */
public function testLegacyEnctype() public function testLegacyEnctype()
{ {
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
$form = $this->factory->createNamedBuilder('name', 'form') $form = $this->factory->createNamedBuilder('name', 'form')
->add('file', 'file') ->add('file', 'file')
->getForm(); ->getForm();
@ -141,8 +139,6 @@ abstract class AbstractLayoutTest extends \Symfony\Component\Form\Test\FormInteg
*/ */
public function testLegacyNoEnctype() public function testLegacyNoEnctype()
{ {
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
$form = $this->factory->createNamedBuilder('name', 'form') $form = $this->factory->createNamedBuilder('name', 'form')
->add('text', 'text') ->add('text', 'text')
->getForm(); ->getForm();

View File

@ -25,7 +25,6 @@ class DefaultCsrfProviderTest extends \PHPUnit_Framework_TestCase
{ {
ini_set('session.save_handler', 'files'); ini_set('session.save_handler', 'files');
ini_set('session.save_path', sys_get_temp_dir()); ini_set('session.save_path', sys_get_temp_dir());
ini_set('error_reporting', -1 & ~E_USER_DEPRECATED);
} }
protected function setUp() protected function setUp()

View File

@ -37,8 +37,6 @@ class LegacyBindRequestListenerTest extends \PHPUnit_Framework_TestCase
protected function setUp() protected function setUp()
{ {
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
$path = tempnam(sys_get_temp_dir(), 'sf2'); $path = tempnam(sys_get_temp_dir(), 'sf2');
touch($path); touch($path);

View File

@ -105,7 +105,7 @@ class Client extends BaseClient
$code = <<<EOF $code = <<<EOF
<?php <?php
error_reporting($errorReporting & ~E_USER_DEPRECATED); error_reporting($errorReporting);
require_once '$requirePath'; require_once '$requirePath';

View File

@ -22,8 +22,6 @@ class LocaleTest extends \PHPUnit_Framework_TestCase
{ {
protected function setUp() protected function setUp()
{ {
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
\Locale::setDefault('en'); \Locale::setDefault('en');
} }

View File

@ -18,11 +18,6 @@ use Symfony\Component\Locale\Stub\StubLocale;
*/ */
class StubLocaleTest extends \PHPUnit_Framework_TestCase class StubLocaleTest extends \PHPUnit_Framework_TestCase
{ {
protected function setUp()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
}
public function testGetCurrenciesData() public function testGetCurrenciesData()
{ {
$currencies = StubLocale::getCurrenciesData('en'); $currencies = StubLocale::getCurrenciesData('en');

View File

@ -51,8 +51,6 @@ class RouteTest extends \PHPUnit_Framework_TestCase
*/ */
public function testLegacyGetPattern() public function testLegacyGetPattern()
{ {
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
$route = new Route(array('value' => '/Blog')); $route = new Route(array('value' => '/Blog'));
$this->assertEquals($route->getPattern(), '/Blog'); $this->assertEquals($route->getPattern(), '/Blog');
} }

View File

@ -206,8 +206,6 @@ class RouteTest extends \PHPUnit_Framework_TestCase
*/ */
public function testLegacyPattern() public function testLegacyPattern()
{ {
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
$route = new Route('/{foo}'); $route = new Route('/{foo}');
$this->assertEquals('/{foo}', $route->getPattern()); $this->assertEquals('/{foo}', $route->getPattern());