@@ -82,7 +82,8 @@ public function testCreateValueBinaryFromStream()
82
82
$ oldSession = $ this ->session ;
83
83
$ this ->saveAndRenewSession (); // either this
84
84
$ 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 ' );
86
87
87
88
$ bin = $ this ->session ->getProperty ('/tests_general_base/numberPropertyNode/jcr:content/newBinaryStream ' );
88
89
$ this ->assertEquals (PropertyType::BINARY , $ bin ->getType ());
@@ -102,7 +103,8 @@ public function testCreateValueBinaryFromStreamAndRead()
102
103
$ oldSession = $ this ->session ;
103
104
$ this ->saveAndRenewSession (); // either this
104
105
$ 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 ' );
106
108
107
109
$ bin = $ this ->session ->getProperty ('/tests_general_base/numberPropertyNode/jcr:content/newBinaryStream ' );
108
110
$ this ->assertEquals (PropertyType::BINARY , $ bin ->getType ());
0 commit comments