public function vfsStreamWrapperSelectStreamTestCase::selectStream in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
org\bovigo\vfsCode
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);
}