You are here

public function vfsStreamWrapperSelectStreamTestCase::selectStream in Zircon Profile 8

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

@test @expectedException \PHPUnit_Framework_Error

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperStreamSelectTestCase.php, line 23

Class

vfsStreamWrapperSelectStreamTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function selectStream() {
  $root = vfsStream::setup();
  $file = vfsStream::newFile('foo.txt')
    ->at($root)
    ->withContent('testContent');
  $fp = fopen(vfsStream::url('root/foo.txt'), 'rb');
  $readarray = array(
    $fp,
  );
  $writearray = array();
  $exceptarray = array();
  stream_select($readarray, $writearray, $exceptarray, 1);
}