diff --git a/test/src/Stream/StreamWriterTest.php b/test/src/Stream/StreamWriterTest.php index 46a3774..060dd42 100644 --- a/test/src/Stream/StreamWriterTest.php +++ b/test/src/Stream/StreamWriterTest.php @@ -69,11 +69,11 @@ public function testWriteAutoCloseOff() $writer = new StreamWriter($value_stream, $stream, $buffer_size); - $this->assertTrue(is_resource($stream)); + $this->assertSame("stream", get_resource_type($stream)); while ($ret = $writer->write(false)); - $this->assertTrue(is_resource($stream)); + $this->assertSame("Unknown", get_resource_type($stream)); } @@ -89,11 +89,11 @@ public function testWriteAutoCloseOn() $writer = new StreamWriter($value_stream, $stream, $buffer_size); - $this->assertTrue(is_resource($stream)); + $this->assertSame("stream", get_resource_type($stream)); while ($ret = $writer->write(true)); - $this->assertFalse(is_resource($stream)); + $this->assertSame("Unknown", get_resource_type($stream)); } }