TestPhpInputStream::stream_open PHP Method

stream_open() public method

Opens file.
public stream_open ( string $path, string $mode, integer $options, string &$openedPath ) : boolean
$path string File path
$mode string File mode
$options integer Options
$openedPath string Opened path
return boolean
    public function stream_open($path, $mode, $options, &$openedPath)
    {
        $mode = trim($mode, 'tb');
        switch ($mode) {
            case 'r':
            case 'r+':
                $this->read = 0;
                return true;
            default:
                return false;
        }
    }