You are here

public function vfsStreamWrapperSetOptionTestCase::setTimeoutDoesNotWork 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::setTimeoutDoesNotWork()

@test

File

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

Class

vfsStreamWrapperSetOptionTestCase
Test for stream_set_option() implementation.

Namespace

org\bovigo\vfs

Code

public function setTimeoutDoesNotWork() {
  $fp = fopen(vfsStream::url('root/foo.txt'), 'rb');
  $this
    ->assertFalse(stream_set_timeout($fp, 1));
  fclose($fp);
}