@@ -82,7 +82,8 @@ public function testCreateValueBinaryFromStream()
8282 $ oldSession = $ this ->session ;
8383 $ this ->saveAndRenewSession (); // either this
8484 $ oldSession ->logout (); // or this should close the stream
85- $ this ->assertNotInternalType ('resource ' , $ stream , 'The responsibility for the stream goes into phpcr who must close it ' );
85+ // phpunit assertNotInternalType type still considers the closed stream a resource
86+ $ this ->assertFalse (\is_resource ($ stream ), 'The responsibility for the stream goes into phpcr who must close it ' );
8687
8788 $ bin = $ this ->session ->getProperty ('/tests_general_base/numberPropertyNode/jcr:content/newBinaryStream ' );
8889 $ this ->assertEquals (PropertyType::BINARY , $ bin ->getType ());
@@ -102,7 +103,8 @@ public function testCreateValueBinaryFromStreamAndRead()
102103 $ oldSession = $ this ->session ;
103104 $ this ->saveAndRenewSession (); // either this
104105 $ oldSession ->logout (); // or this should close the stream
105- $ this ->assertNotInternalType ('resource ' , $ stream , 'The responsibility for the stream goes into phpcr who must close it ' );
106+ // phpunit assertNotInternalType type still considers the closed stream a resource
107+ $ this ->assertFalse (\is_resource ($ stream ), 'The responsibility for the stream goes into phpcr who must close it ' );
106108
107109 $ bin = $ this ->session ->getProperty ('/tests_general_base/numberPropertyNode/jcr:content/newBinaryStream ' );
108110 $ this ->assertEquals (PropertyType::BINARY , $ bin ->getType ());
0 commit comments