@@ -130,41 +130,41 @@ public function testValidateWithMineTypesFromConfig()
130130
131131 public function testValidateFieldSettingsWithEmptyArray ()
132132 {
133- $ result = $ this ->type ->validateFieldSettings ([] );
134- $ this ->assertTrue ( is_array ( $ result) );
135- $ this ->assertTrue ( empty ( $ result) );
133+ $ result = $ this ->type ->validateFieldSettings (array () );
134+ $ this ->assertInternalType ( ' array ' , $ result );
135+ $ this ->assertEmpty ( $ result );
136136 }
137137
138138 public function testValidateFieldSettingsWithBool ()
139139 {
140140 $ result = $ this ->type ->validateFieldSettings (false );
141- $ this ->assertTrue ( is_array ( $ result) );
142- $ this ->assertFalse ( empty ( $ result) );
141+ $ this ->assertInternalType ( ' array ' , $ result );
142+ $ this ->assertNotEmpty ( $ result );
143143 $ this ->assertEquals (new ValidationError ('Field settings must be in form of an array ' ), $ result [0 ]);
144144 }
145145
146146 public function testValidateFieldSettingsWithFieldSettings ()
147147 {
148- $ fieldSettings = [
149- " allowedTypes " => [] ,
150- " some_settings " => [] ,
151- ] ;
148+ $ fieldSettings = array (
149+ ' allowedTypes ' => array () ,
150+ ' some_settings ' => array () ,
151+ ) ;
152152 $ result = $ this ->type ->validateFieldSettings ($ fieldSettings );
153- $ this ->assertTrue ( is_array ( $ result) );
154- $ this ->assertFalse ( empty ( $ result) );
153+ $ this ->assertInternalType ( ' array ' , $ result );
154+ $ this ->assertNotEmpty ( $ result );
155155 $ this ->assertEquals (
156156 new ValidationError (
157157 "Setting '%setting%' is unknown " ,
158158 null ,
159- [ 'setting ' => 'some_settings ' ]
159+ array ( 'setting ' => 'some_settings ' )
160160 ),
161161 $ result [0 ]
162162 );
163163 }
164164
165165 public function testFromHash ()
166166 {
167- $ result = $ this ->type ->fromHash ([] );
167+ $ result = $ this ->type ->fromHash (array () );
168168
169169 $ this ->assertInstanceOf (Value::class, $ result );
170170 $ this ->assertEquals (new Value (), $ result );
0 commit comments