Skip to content

Commit 2754a6c

Browse files
committed
Test for #13
Upgraded the minimun php-http/message version to allow dependencies installation.
1 parent ea4b321 commit 2754a6c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/StreamTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,14 @@ public function testClose()
144144

145145
$this->assertFalse(is_resource($socket));
146146
}
147+
148+
public function testRead()
149+
{
150+
$stream = $this->createSocket("Body");
151+
152+
$this->assertEquals("Bod", $stream->read(3));
153+
$this->assertEquals("y", $stream->read(3));
154+
155+
$stream->close();
156+
}
147157
}

0 commit comments

Comments
 (0)