3 * This file is part of vfsStream.
5 * For the full copyright and license information, please view the LICENSE
6 * file that was distributed with this source code.
8 * @package org\bovigo\vfs
10 namespace org\bovigo\vfs;
12 * Test for org\bovigo\vfs\vfsStreamWrapper.
17 class vfsStreamWrapperSelectStreamTestCase extends \PHPUnit_Framework_TestCase
21 * @expectedException \PHPUnit_Framework_Error
23 public function selectStream()
25 $root = vfsStream::setup();
26 $file = vfsStream::newFile('foo.txt')->at($root)->withContent('testContent');
28 $fp = fopen(vfsStream::url('root/foo.txt'), 'rb');
29 $readarray = array($fp);
30 $writearray = array();
31 $exceptarray = array();
32 stream_select($readarray, $writearray, $exceptarray, 1);