public function BufferStreamTest::testExceedingHighwaterMarkReturnsFalseButStillBuffers in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/psr7/tests/BufferStreamTest.php \GuzzleHttp\Tests\Psr7\BufferStreamTest::testExceedingHighwaterMarkReturnsFalseButStillBuffers()
File
- vendor/
guzzlehttp/ psr7/ tests/ BufferStreamTest.php, line 55
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testExceedingHighwaterMarkReturnsFalseButStillBuffers() {
$b = new BufferStream(5);
$this
->assertEquals(3, $b
->write('hi '));
$this
->assertFalse($b
->write('hello'));
$this
->assertEquals('hi hello', (string) $b);
$this
->assertEquals(4, $b
->write('test'));
}