Fix stream tests

This commit is contained in:
Pierre Rudloff 2020-05-14 12:02:13 +02:00
parent 7b5e7cb6d9
commit 1e9c9e96c5

View file

@ -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());
}
/**