public function LimitStreamTest::testReadsOnlySubsetOfData in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/psr7/tests/LimitStreamTest.php \GuzzleHttp\Tests\Psr7\LimitStreamTest::testReadsOnlySubsetOfData()
File
- vendor/
guzzlehttp/ psr7/ tests/ LimitStreamTest.php, line 99
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testReadsOnlySubsetOfData() {
$data = $this->body
->read(100);
$this
->assertEquals(10, strlen($data));
$this
->assertSame('', $this->body
->read(1000));
$this->body
->setOffset(10);
$newData = $this->body
->read(100);
$this
->assertEquals(10, strlen($newData));
$this
->assertNotSame($data, $newData);
}