File tree Expand file tree Collapse file tree 3 files changed +18
-24
lines changed Expand file tree Collapse file tree 3 files changed +18
-24
lines changed Original file line number Diff line number Diff line change 14
14
use Symfony \Component \OptionsResolver \OptionsResolver ;
15
15
use Symfony \Component \OptionsResolver \Options ;
16
16
17
- /**
18
- * @deprecated Deprecated since Symfony 2.6, to be removed in Symfony 3.0.
19
- */
20
- class OptionsResolverTest extends \PHPUnit_Framework_TestCase
17
+ class LegacyOptionsResolverTest extends \PHPUnit_Framework_TestCase
21
18
{
22
19
/**
23
20
* @var OptionsResolver
@@ -26,6 +23,8 @@ class OptionsResolverTest extends \PHPUnit_Framework_TestCase
26
23
27
24
protected function setUp ()
28
25
{
26
+ $ this ->iniSet ('error_reporting ' , -1 & ~E_USER_DEPRECATED );
27
+
29
28
$ this ->resolver = new OptionsResolver ();
30
29
}
31
30
@@ -717,4 +716,16 @@ public function testClone()
717
716
'three ' => '3 ' ,
718
717
), $ clone ->resolve ());
719
718
}
719
+
720
+ public function testOverloadReturnsThis ()
721
+ {
722
+ $ this ->assertSame ($ this ->resolver , $ this ->resolver ->overload ('foo ' , 'bar ' ));
723
+ }
724
+
725
+ public function testOverloadCallsSet ()
726
+ {
727
+ $ this ->resolver ->overload ('foo ' , 'bar ' );
728
+
729
+ $ this ->assertSame (array ('foo ' => 'bar ' ), $ this ->resolver ->resolve ());
730
+ }
720
731
}
Original file line number Diff line number Diff line change 14
14
use Symfony \Component \OptionsResolver \Options ;
15
15
use Symfony \Component \OptionsResolver \OptionsResolver ;
16
16
17
- /**
18
- * @deprecated Deprecated since Symfony 2.6, to be removed in Symfony 3.0.
19
- */
20
- class OptionsTest extends \PHPUnit_Framework_TestCase
17
+ class LegacyOptionsTest extends \PHPUnit_Framework_TestCase
21
18
{
22
19
/**
23
20
* @var OptionsResolver
@@ -26,6 +23,8 @@ class OptionsTest extends \PHPUnit_Framework_TestCase
26
23
27
24
protected function setUp ()
28
25
{
26
+ $ this ->iniSet ('error_reporting ' , -1 & E_USER_DEPRECATED );
27
+
29
28
$ this ->options = new OptionsResolver ();
30
29
}
31
30
Original file line number Diff line number Diff line change @@ -113,22 +113,6 @@ public function testHasDefaultWithNullValue()
113
113
$ this ->assertTrue ($ this ->resolver ->hasDefault ('foo ' ));
114
114
}
115
115
116
- ////////////////////////////////////////////////////////////////////////////
117
- // overload()
118
- ////////////////////////////////////////////////////////////////////////////
119
-
120
- public function testOverloadReturnsThis ()
121
- {
122
- $ this ->assertSame ($ this ->resolver , $ this ->resolver ->overload ('foo ' , 'bar ' ));
123
- }
124
-
125
- public function testOverloadCallsSet ()
126
- {
127
- $ this ->resolver ->overload ('foo ' , 'bar ' );
128
-
129
- $ this ->assertSame (array ('foo ' => 'bar ' ), $ this ->resolver ->resolve ());
130
- }
131
-
132
116
////////////////////////////////////////////////////////////////////////////
133
117
// lazy setDefault()
134
118
////////////////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments