Skip to content

Commit 14094d6

Browse files
[PhpUnitBridge] Enforce @-silencing of deprecation notices according to new policy
1 parent e8704aa commit 14094d6

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

Tests/Normalizer/GetSetMethodNormalizerTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ public function testDenormalizeWithObject()
105105
*/
106106
public function testLegacyDenormalizeOnCamelCaseFormat()
107107
{
108-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
109-
110108
$this->normalizer->setCamelizedAttributes(array('camel_case'));
111109
$obj = $this->normalizer->denormalize(
112110
array('camel_case' => 'camelCase'),
@@ -136,8 +134,6 @@ public function testDenormalizeNull()
136134
*/
137135
public function testLegacyCamelizedAttributesNormalize()
138136
{
139-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
140-
141137
$obj = new GetCamelizedDummy('dunglas.fr');
142138
$obj->setFooBar('les-tilleuls.coop');
143139
$obj->setBar_foo('lostinthesupermarket.fr');
@@ -162,8 +158,6 @@ public function testLegacyCamelizedAttributesNormalize()
162158
*/
163159
public function testLegacyCamelizedAttributesDenormalize()
164160
{
165-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
166-
167161
$obj = new GetCamelizedDummy('dunglas.fr');
168162
$obj->setFooBar('les-tilleuls.coop');
169163
$obj->setBar_foo('lostinthesupermarket.fr');

Tests/Normalizer/ObjectNormalizerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ public function testDenormalizeWithObject()
102102
*/
103103
public function testLegacyDenormalizeOnCamelCaseFormat()
104104
{
105-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
106-
107105
$this->normalizer->setCamelizedAttributes(array('camel_case'));
108106
$obj = $this->normalizer->denormalize(
109107
array('camel_case' => 'camelCase'),

Tests/Normalizer/PropertyNormalizerTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public function testDenormalize()
6868
*/
6969
public function testLegacyDenormalizeOnCamelCaseFormat()
7070
{
71-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
72-
7371
$this->normalizer->setCamelizedAttributes(array('camel_case'));
7472
$obj = $this->normalizer->denormalize(
7573
array('camel_case' => 'value'),
@@ -83,8 +81,6 @@ public function testLegacyDenormalizeOnCamelCaseFormat()
8381
*/
8482
public function testLegacyCamelizedAttributesNormalize()
8583
{
86-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
87-
8884
$obj = new PropertyCamelizedDummy('dunglas.fr');
8985
$obj->fooBar = 'les-tilleuls.coop';
9086
$obj->bar_foo = 'lostinthesupermarket.fr';
@@ -109,8 +105,6 @@ public function testLegacyCamelizedAttributesNormalize()
109105
*/
110106
public function testLegacyCamelizedAttributesDenormalize()
111107
{
112-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
113-
114108
$obj = new PropertyCamelizedDummy('dunglas.fr');
115109
$obj->fooBar = 'les-tilleuls.coop';
116110
$obj->bar_foo = 'lostinthesupermarket.fr';

0 commit comments

Comments
 (0)