third_party/vfsstream/vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperAlreadyRegisteredTestCase.php
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
- Package
- org\bovigo\vfs
\org\bovigo\vfs\TestvfsStreamWrapper
- Parent(s)
- \org\bovigo\vfs\vfsStreamWrapper
Constants
APPEND
= 'a'
- Inherited_from
- \org\bovigo\vfs\vfsStreamWrapper::APPEND
WRITE
= 'x'
- Inherited_from
- \org\bovigo\vfs\vfsStreamWrapper::WRITE
WRITE_NEW
= 'c'
- Inherited_from
- \org\bovigo\vfs\vfsStreamWrapper::WRITE_NEW
Methods
dir_opendir
(string $path, int $options)
: bool
Name | Type | Description |
---|---|---|
$path | string | |
$options | int |
Type | Description |
---|---|
bool |
dir_rewinddir
()
: bool
reset directory iteration
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::dir_rewinddir()Type | Description |
---|---|
bool |
getRoot
()
:
\org\bovigo\vfs\vfsStreamContainer
returns the root content
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::getRoot()Type | Description |
---|---|
\org\bovigo\vfs\vfsStreamContainer |
mkdir
(string $path, int $mode, int $options)
: bool
Name | Type | Description |
---|---|---|
$path | string | |
$mode | int | |
$options | int |
Type | Description |
---|---|
bool |
register
()
: void
method to register the stream wrapper
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::register()Please be aware that a call to this method will reset the root element to null. If the stream is already registered the method returns silently. If there is already another stream wrapper registered for the scheme used by vfsStream a vfsStreamException will be thrown.
Exception | Description |
---|---|
\org\bovigo\vfs\vfsStreamException |
rename
(string $path_from, string $path_to)
: bool
rename from one path to another
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::rename()Name | Type | Description |
---|---|---|
$path_from | string | |
$path_to | string |
Type | Description |
---|---|
bool |
- Author
- Benoit Aubuchon
rmdir
(string $path, int $options)
: bool
Name | Type | Description |
---|---|---|
$path | string | |
$options | int |
Type | Description |
---|---|
bool |
setQuota
(\org\bovigo\vfs\Quota $quota)
: void
sets quota for disk space
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::setQuota()Name | Type | Description |
---|---|---|
$quota | \org\bovigo\vfs\Quota |
- Since
- 1.1.0
setRoot
(
\org\bovigo\vfs\vfsStreamContainer
$root)
:
\org\bovigo\vfs\vfsStreamContainer
Name | Type | Description |
---|---|---|
$root | \org\bovigo\vfs\vfsStreamContainer |
Type | Description |
---|---|
\org\bovigo\vfs\vfsStreamContainer |
stream_cast
(int $cast_as)
: bool
retrieve the underlaying resource
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::stream_cast()Please note that this method always returns false as there is no underlaying resource to return.
Name | Type | Description |
---|---|---|
$cast_as | int |
Type | Description |
---|---|
bool |
- See
- \org\bovigo\vfs\https://github.com/mikey179/vfsStream/issues/3
- Since
- 0.9.0
stream_eof
()
: bool
checks whether stream is at end of file
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::stream_eof()Type | Description |
---|---|
bool |
stream_flush
()
: bool
flushes unstored data into storage
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::stream_flush()Type | Description |
---|---|
bool |
stream_lock
(int $operation)
: bool
set lock status for stream
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::stream_lock()Name | Type | Description |
---|---|---|
$operation | int |
Type | Description |
---|---|
bool |
- See
- \org\bovigo\vfs\https://github.com/mikey179/vfsStream/issues/6
- See
- \org\bovigo\vfs\https://github.com/mikey179/vfsStream/issues/31
- See
- \org\bovigo\vfs\https://github.com/mikey179/vfsStream/issues/40
- Since
- 0.10.0
stream_metadata
(string $path, int $option, mixed $var)
: bool
sets metadata like owner, user or permissions
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::stream_metadata()Name | Type | Description |
---|---|---|
$path | string | |
$option | int | |
$var | mixed |
Type | Description |
---|---|
bool |
- Since
- 1.1.0
stream_open
(string $path, string $mode, string $options, string $opened_path)
: bool
Name | Type | Description |
---|---|---|
$path | string |
the path to open |
$mode | string |
mode for opening |
$options | string |
options for opening |
$opened_path | string |
full path that was actually opened |
Type | Description |
---|---|
bool |
stream_read
(int $count)
: string
read the stream up to $count bytes
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::stream_read()Name | Type | Description |
---|---|---|
$count | int |
amount of bytes to read |
Type | Description |
---|---|
string |
stream_seek
(int $offset, int $whence)
: bool
Name | Type | Description |
---|---|---|
$offset | int | |
$whence | int |
Type | Description |
---|---|
bool |
stream_set_option
(int $option, int $arg1, int $arg2)
: bool
sets options on the stream
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::stream_set_option()Name | Type | Description |
---|---|---|
$option | int |
key of option to set |
$arg1 | int | |
$arg2 | int |
Type | Description |
---|---|
bool |
- See
- \org\bovigo\vfs\https://github.com/mikey179/vfsStream/issues/15
- See
- \org\bovigo\vfs\http://www.php.net/manual/streamwrapper.stream-set-option.php
- Since
- 0.10.0
stream_tell
()
: int
returns the current position of the stream
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::stream_tell()Type | Description |
---|---|
int |
stream_truncate
(int $size)
: bool
truncates a file to a given length
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::stream_truncate()Name | Type | Description |
---|---|---|
$size | int |
length to truncate file to |
Type | Description |
---|---|
bool |
- Since
- 1.1.0
stream_write
(string $data)
: int
writes data into the stream
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::stream_write()Name | Type | Description |
---|---|---|
$data | string |
Type | Description |
---|---|
int | amount of bytes written |
unlink
(string $path)
: bool
remove the data under the given path
Inherited from: \org\bovigo\vfs\vfsStreamWrapper::unlink()Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
bool |
\org\bovigo\vfs\vfsStreamWrapperAlreadyRegisteredTestCase
- Parent(s)
- \PHPUnit_Framework_TestCase