From 1e9c9e96c598349e13a8931cc3cc8205aba769b7 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 14 May 2020 12:02:13 +0200 Subject: [PATCH] Fix stream tests --- tests/StreamTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/StreamTest.php b/tests/StreamTest.php index bcd3887..f634838 100644 --- a/tests/StreamTest.php +++ b/tests/StreamTest.php @@ -38,7 +38,7 @@ abstract class StreamTest extends BaseTest public function testWrite() { if ($this->stream->isWritable()) { - $this->assertNull($this->stream->write('foo')); + $this->assertIsInt($this->stream->write('foo')); } else { $this->expectException(RuntimeException::class); $this->stream->write('foo'); @@ -105,7 +105,7 @@ abstract class StreamTest extends BaseTest */ public function testEof() { - $this->assertFalse($this->stream->eof()); + $this->assertIsBool($this->stream->eof()); } /**