public function FunctionsTest::testReadsLinesUpToMaxLength in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testReadsLinesUpToMaxLength()
File
- vendor/
guzzlehttp/ psr7/ tests/ FunctionsTest.php, line 79
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testReadsLinesUpToMaxLength() {
$s = Psr7\stream_for("12345\n");
$this
->assertEquals("123", Psr7\readline($s, 4));
$this
->assertEquals("45\n", Psr7\readline($s));
}