You are here

public function vfsStreamWrapperSetOptionTestCase::setWriteBufferDoesNotWork in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperSetOptionTestCase.php \org\bovigo\vfs\vfsStreamWrapperSetOptionTestCase::setWriteBufferDoesNotWork()

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperSetOptionTestCase.php, line 69

Class

vfsStreamWrapperSetOptionTestCase
Test for stream_set_option() implementation.

Namespace

org\bovigo\vfs

Code

public function setWriteBufferDoesNotWork() {
  $fp = fopen(vfsStream::url('root/foo.txt'), 'rb');
  $this
    ->assertEquals(-1, stream_set_write_buffer($fp, 512));
  fclose($fp);
}