public function FnStreamTest::testProxiesToFunction in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/FnStreamTest.php \GuzzleHttp\Tests\Psr7\FnStreamTest::testProxiesToFunction()
File
- vendor/
guzzlehttp/ psr7/ tests/ FnStreamTest.php, line 21
Class
- FnStreamTest
- @covers GuzzleHttp\Psr7\FnStream
Namespace
GuzzleHttp\Tests\Psr7Code
public function testProxiesToFunction() {
$s = new FnStream([
'read' => function ($len) {
$this
->assertEquals(3, $len);
return 'foo';
},
]);
$this
->assertEquals('foo', $s
->read(3));
}