@@ -50,7 +50,7 @@ class NodeTypeTest extends BaseCase
50
50
*/
51
51
private static $ created ;
52
52
53
- public static function setupBeforeClass ($ fixtures = false )
53
+ public static function setupBeforeClass ($ fixtures = false ): void
54
54
{
55
55
parent ::setupBeforeClass ($ fixtures );
56
56
$ ntm = self ::$ staticSharedFixture ['session ' ]->getWorkspace ()->getNodeTypeManager ();
@@ -64,7 +64,7 @@ public static function setupBeforeClass($fixtures = false)
64
64
public function testGetSupertypes ()
65
65
{
66
66
$ types = self ::$ file ->getSupertypes ();
67
- $ this ->assertInternalType ( ' array ' , $ types );
67
+ $ this ->assertIsArray ( $ types );
68
68
$ typenames = [];
69
69
70
70
foreach ($ types as $ type ) {
@@ -77,14 +77,14 @@ public function testGetSupertypes()
77
77
public function testGetSupertypesNone ()
78
78
{
79
79
$ types = self ::$ base ->getSupertypes ();
80
- $ this ->assertInternalType ( ' array ' , $ types );
80
+ $ this ->assertIsArray ( $ types );
81
81
$ this ->assertCount (0 , $ types );
82
82
}
83
83
84
84
public function testGetDeclaredSupertypes ()
85
85
{
86
86
$ types = self ::$ file ->getDeclaredSupertypes ();
87
- $ this ->assertInternalType ( ' array ' , $ types );
87
+ $ this ->assertIsArray ( $ types );
88
88
$ typenames = [];
89
89
90
90
foreach ($ types as $ type ) {
@@ -96,7 +96,7 @@ public function testGetDeclaredSupertypes()
96
96
$ this ->assertNotContains ('nt:base ' , $ typenames );
97
97
98
98
$ types = self ::$ resource ->getDeclaredSupertypes ();
99
- $ this ->assertInternalType ( ' array ' , $ types );
99
+ $ this ->assertIsArray ( $ types );
100
100
$ typenames = [];
101
101
102
102
foreach ($ types as $ type ) {
@@ -112,7 +112,7 @@ public function testGetDeclaredSupertypes()
112
112
public function testGetDeclaredSupertypesNone ()
113
113
{
114
114
$ types = self ::$ base ->getDeclaredSupertypes ();
115
- $ this ->assertInternalType ( ' array ' , $ types );
115
+ $ this ->assertIsArray ( $ types );
116
116
$ this ->assertCount (0 , $ types );
117
117
}
118
118
@@ -155,7 +155,7 @@ public function testGetDeclaredSubtypes()
155
155
public function testGetChildNodeDefinitions ()
156
156
{
157
157
$ children = self ::$ file ->getChildNodeDefinitions ();
158
- $ this ->assertInternalType ( ' array ' , $ children );
158
+ $ this ->assertIsArray ( $ children );
159
159
$ this ->assertCount (1 , $ children );
160
160
$ child = current ($ children );
161
161
$ this ->assertInstanceOf (NodeDefinitionInterface::class, $ child );
@@ -166,7 +166,7 @@ public function testGetChildNodeDefinitions()
166
166
public function testGetPropertyDefinitions ()
167
167
{
168
168
$ properties = self ::$ file ->getPropertyDefinitions ();
169
- $ this ->assertInternalType ( ' array ' , $ properties );
169
+ $ this ->assertIsArray ( $ properties );
170
170
$ this ->assertCount (4 , $ properties );
171
171
$ names = [];
172
172
0 commit comments