@@ -55,18 +55,18 @@ public function setUp()
5555 public function testReadBinaryValue ()
5656 {
5757 $ binary = $ this ->binaryProperty ->getBinary ();
58- $ this ->assertTrue ( is_resource ( $ binary) );
58+ $ this ->assertInternalType ( ' resource ' , $ binary );
5959 $ this ->assertEquals ($ this ->decodedstring , stream_get_contents ($ binary ));
6060
6161 // stream must start when getting again
6262 $ binary = $ this ->binaryProperty ->getBinary ();
63- $ this ->assertTrue ( is_resource ( $ binary) );
63+ $ this ->assertInternalType ( ' resource ' , $ binary );
6464 $ this ->assertEquals ($ this ->decodedstring , stream_get_contents ($ binary ), 'Stream must begin at start again on second read ' );
6565
6666 // stream must not be the same
6767 fclose ($ binary );
6868 $ binary = $ this ->binaryProperty ->getBinary ();
69- $ this ->assertTrue ( is_resource ( $ binary) );
69+ $ this ->assertInternalType ( ' resource ' , $ binary );
7070 $ this ->assertEquals ($ this ->decodedstring , stream_get_contents ($ binary ), 'Stream must be different for each call, fclose should not matter ' );
7171 }
7272
@@ -100,7 +100,7 @@ public function testReadBinaryValues()
100100 $ vals = $ binaryMulti ->getValue ();
101101 $ this ->assertInternalType ('array ' , $ vals );
102102 foreach ($ vals as $ value ) {
103- $ this ->assertTrue ( is_resource ( $ value) );
103+ $ this ->assertInternalType ( ' resource ' , $ value );
104104 $ this ->assertEquals ($ this ->decodedstring , stream_get_contents ($ value ));
105105 }
106106 }
@@ -161,8 +161,8 @@ public function testReadEmptyBinaryMultivalue()
161161 $ empty = $ node ->getProperty ('empty_multidata ' );
162162 $ this ->assertEquals (PropertyType::BINARY , $ empty ->getType ());
163163 $ emptyValue = $ empty ->getBinary ();
164- $ this ->assertTrue ( is_array ( $ emptyValue) );
165- $ this ->assertTrue ( count ( $ emptyValue) === 0 );
164+ $ this ->assertInternalType ( ' array ' , $ emptyValue );
165+ $ this ->assertCount ( 0 , $ emptyValue );
166166 }
167167
168168 /**
@@ -174,8 +174,8 @@ public function testReadSingleBinaryMultivalue()
174174 $ single = $ node ->getProperty ('single_multidata ' );
175175 $ this ->assertEquals (PropertyType::BINARY , $ single ->getType ());
176176 $ singleValue = $ single ->getBinary ();
177- $ this ->assertTrue ( is_array ( $ singleValue) );
178- $ this ->assertTrue ( is_resource ( $ singleValue [0 ]) );
177+ $ this ->assertInternalType ( ' array ' , $ singleValue );
178+ $ this ->assertInternalType ( ' resource ' , $ singleValue [0 ]);
179179 $ contents = stream_get_contents ($ singleValue [0 ]);
180180 $ this ->assertEquals ($ this ->decodedstring , $ contents );
181181 }
0 commit comments