Skip to content

Commit 25407e7

Browse files
committed
Test for #13
Upgraded the minimun php-http/message version to allow dependencies installation.
1 parent 0d986fb commit 25407e7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"guzzlehttp/psr7": "^1.2",
2020
"php-http/discovery": "^0.8@dev",
2121
"php-http/adapter-integration-tests": "dev-master",
22-
"php-http/message": "^0.2@dev",
22+
"php-http/message": "^1.0",
2323
"php-http/client-common": "0.2.0"
2424
},
2525
"suggest": {

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)