File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Config \Tests \Definition \Builder ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
15
16
use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
16
17
use Symfony \Component \Config \Tests \Fixtures \Builder \NodeBuilder as CustomNodeBuilder ;
17
18
18
19
class TreeBuilderTest extends TestCase
19
20
{
21
+ use ForwardCompatTestTrait;
22
+
20
23
public function testUsingACustomNodeBuilder ()
21
24
{
22
25
$ builder = new TreeBuilder ('custom ' , 'array ' , new CustomNodeBuilder ());
@@ -124,7 +127,7 @@ public function testDefinitionExampleGetsTransferredToNode()
124
127
$ tree = $ builder ->buildTree ();
125
128
$ children = $ tree ->getChildren ();
126
129
127
- $ this ->assertInternalType ( ' array ' , $ tree ->getExample ());
130
+ $ this ->assertIsArray ( $ tree ->getExample ());
128
131
$ this ->assertEquals ('example ' , $ children ['child ' ]->getExample ());
129
132
}
130
133
You can’t perform that action at this time.
0 commit comments