opt
/
cpanel
/
ea-wappspector
/
vendor
/
mikey179
/
vfsstream
/
src
/
test
/
php
/
org
/
bovigo
/
vfs
➕ New
📤 Upload
✎ Editing:
vfsStreamWrapperStreamSelectTestCase.php
← Back
<?php /** * This file is part of vfsStream. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @package org\bovigo\vfs */ namespace org\bovigo\vfs; /** * Test for org\bovigo\vfs\vfsStreamWrapper. * * @since 0.9.0 * @group issue_3 */ class vfsStreamWrapperSelectStreamTestCase extends \BC_PHPUnit_Framework_TestCase { /** * @test */ public function selectStream() { if (PHP_VERSION_ID >= 80000) { $this->bc_expectException('\ValueError'); } else { $this->bc_expectException('\PHPUnit_Framework_Error'); } $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); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel