You are here

public function FunctionsTest::testReadsLinesUpToMaxLength in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testReadsLinesUpToMaxLength()

File

vendor/guzzlehttp/psr7/tests/FunctionsTest.php, line 79

Class

FunctionsTest

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testReadsLinesUpToMaxLength() {
  $s = Psr7\stream_for("12345\n");
  $this
    ->assertEquals("123", Psr7\readline($s, 4));
  $this
    ->assertEquals("45\n", Psr7\readline($s));
}