Fix stream tests
This commit is contained in:
parent
7b5e7cb6d9
commit
1e9c9e96c5
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ abstract class StreamTest extends BaseTest
|
||||||
public function testWrite()
|
public function testWrite()
|
||||||
{
|
{
|
||||||
if ($this->stream->isWritable()) {
|
if ($this->stream->isWritable()) {
|
||||||
$this->assertNull($this->stream->write('foo'));
|
$this->assertIsInt($this->stream->write('foo'));
|
||||||
} else {
|
} else {
|
||||||
$this->expectException(RuntimeException::class);
|
$this->expectException(RuntimeException::class);
|
||||||
$this->stream->write('foo');
|
$this->stream->write('foo');
|
||||||
|
@ -105,7 +105,7 @@ abstract class StreamTest extends BaseTest
|
||||||
*/
|
*/
|
||||||
public function testEof()
|
public function testEof()
|
||||||
{
|
{
|
||||||
$this->assertFalse($this->stream->eof());
|
$this->assertIsBool($this->stream->eof());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue