public function AppendStreamTest::testIsNotWritable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/AppendStreamTest.php \GuzzleHttp\Tests\Psr7\AppendStreamTest::testIsNotWritable()
@expectedExceptionMessage Cannot write to an AppendStream @expectedException \RuntimeException
File
- vendor/
guzzlehttp/ psr7/ tests/ AppendStreamTest.php, line 98
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testIsNotWritable() {
$a = new AppendStream([
Psr7\stream_for('foo'),
]);
$this
->assertFalse($a
->isWritable());
$this
->assertTrue($a
->isSeekable());
$this
->assertTrue($a
->isReadable());
$a
->write('foo');
}