@@ -6,11 +6,13 @@ class DummyNode extends NodeAbstract
6
6
{
7
7
public $ subNode1 ;
8
8
public $ subNode2 ;
9
+ public $ notSubNode ;
9
10
10
- public function __construct ($ subNode1 , $ subNode2 , $ attributes ) {
11
+ public function __construct ($ subNode1 , $ subNode2 , $ notSubNode , $ attributes ) {
11
12
parent ::__construct ($ attributes );
12
13
$ this ->subNode1 = $ subNode1 ;
13
14
$ this ->subNode2 = $ subNode2 ;
15
+ $ this ->notSubNode = $ notSubNode ;
14
16
}
15
17
16
18
public function getSubNodeNames () : array {
@@ -40,8 +42,7 @@ public function provideNodes() {
40
42
],
41
43
];
42
44
43
- $ node = new DummyNode ('value1 ' , 'value2 ' , $ attributes );
44
- $ node ->notSubNode = 'value3 ' ;
45
+ $ node = new DummyNode ('value1 ' , 'value2 ' , 'value3 ' , $ attributes );
45
46
46
47
return [
47
48
[$ attributes , $ node ],
@@ -90,7 +91,7 @@ public function testGetDocComment(array $attributes, Node $node) {
90
91
}
91
92
92
93
public function testSetDocComment () {
93
- $ node = new DummyNode (null , null , []);
94
+ $ node = new DummyNode (null , null , null , []);
94
95
95
96
// Add doc comment to node without comments
96
97
$ docComment = new Comment \Doc ('/** doc */ ' );
0 commit comments