vfsStreamWrapperStreamSelectTestCase.php in Zircon Profile 8
File
vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperStreamSelectTestCase.php
View source
<?php
namespace org\bovigo\vfs;
class vfsStreamWrapperSelectStreamTestCase extends \PHPUnit_Framework_TestCase {
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);
}
}