Skip to content

Commit cb59aa6

Browse files
committed
better test if resource is closed + omit @ to suppress errors
1 parent 8e7103a commit cb59aa6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/StreamIntegrationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ public function testClose()
6060
fwrite($resource, 'abcdef');
6161
$stream = $this->createStream($resource);
6262

63+
$this->assertTrue(is_resource($resource));
6364
$stream->close();
64-
$this->assertFalse(@fclose($resource));
65+
$this->assertFalse(is_resource($resource));
6566
}
6667

6768
public function testDetach()

0 commit comments

Comments
 (0)