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 ();
@@ -128,7 +131,7 @@ public function testDefinitionExampleGetsTransferredToNode()
128
131
$ tree = $ builder ->buildTree ();
129
132
$ children = $ tree ->getChildren ();
130
133
131
- $ this ->assertInternalType ( ' array ' , $ tree ->getExample ());
134
+ $ this ->assertIsArray ( $ tree ->getExample ());
132
135
$ this ->assertEquals ('example ' , $ children ['child ' ]->getExample ());
133
136
}
134
137
}
You can’t perform that action at this time.
0 commit comments