public function AppendStreamTest::testValidatesStreamsAreReadable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/AppendStreamTest.php \GuzzleHttp\Tests\Psr7\AppendStreamTest::testValidatesStreamsAreReadable()
@expectedException \InvalidArgumentException @expectedExceptionMessage Each stream must be readable
File
- vendor/
guzzlehttp/ psr7/ tests/ AppendStreamTest.php, line 13
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testValidatesStreamsAreReadable() {
$a = new AppendStream();
$s = $this
->getMockBuilder('Psr\\Http\\Message\\StreamInterface')
->setMethods([
'isReadable',
])
->getMockForAbstractClass();
$s
->expects($this
->once())
->method('isReadable')
->will($this
->returnValue(false));
$a
->addStream($s);
}