public function FunctionsTest::testReadsLines in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testReadsLines()
File
- vendor/
guzzlehttp/ psr7/ tests/ FunctionsTest.php, line 71
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testReadsLines() {
$s = Psr7\stream_for("foo\nbaz\nbar");
$this
->assertEquals("foo\n", Psr7\readline($s));
$this
->assertEquals("baz\n", Psr7\readline($s));
$this
->assertEquals("bar", Psr7\readline($s));
}