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