Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



third_party/vfsstream/vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamAbstractContentTestCase.php

Table of Contents
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

\org\bovigo\vfs\TestvfsStreamAbstractContent

Package: Default
Helper class for the test.
Parent(s)
\org\bovigo\vfs\vfsStreamAbstractContent

Constants

> V Constant TYPE_DIR = 16384

Methods

method public __construct (string $name, int $permissions = null) : void
inherited

constructor

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::__construct()
Parameters
Name Type Description
$name string
$permissions int

optional

method public appliesTo (string $name) : bool
inherited

checks whether the container can be applied to given name

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::appliesTo()
Parameters
Name Type Description
$name string
Returns
Type Description
bool
method public at ( \org\bovigo\vfs\vfsStreamContainer $container) : \org\bovigo\vfs\vfsStreamContent
inherited

adds content to given container

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::at()
Parameters
Name Type Description
$container \org\bovigo\vfs\vfsStreamContainer
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public chgrp (int $group) : \org\bovigo\vfs\vfsStreamContent
inherited

change owner group of file to given group

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::chgrp()
Parameters
Name Type Description
$group int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public chmod (int $permissions) : \org\bovigo\vfs\vfsStreamContent
inherited

change file mode to given permissions

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::chmod()
Parameters
Name Type Description
$permissions int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public chown (int $user) : \org\bovigo\vfs\vfsStreamContent
inherited

change owner of file to given user

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::chown()
Parameters
Name Type Description
$user int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public fileatime () : int
inherited

returns the last access time of the stream content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::fileatime()
Returns
Type Description
int
Details
Since
0.9
method public filectime () : int
inherited

returns the last attribute modification time of the stream content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::filectime()
Returns
Type Description
int
Details
Since
0.9
method public filemtime () : int
inherited

returns the last modification time of the stream content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::filemtime()
Returns
Type Description
int
method public getGroup () : int
inherited

returns owner group of file

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::getGroup()
Returns
Type Description
int
method public getName () : string
inherited

returns the file name of the content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::getName()
Returns
Type Description
string
method public getPermissions () : int
inherited

returns permissions

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::getPermissions()
Returns
Type Description
int
method public getType () : int
inherited

returns the type of the container

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::getType()
Returns
Type Description
int
method public getUser () : int
inherited

returns owner of file

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::getUser()
Returns
Type Description
int
method public isExecutable (int $user, int $group) : bool
inherited

checks whether content is executable

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::isExecutable()
Parameters
Name Type Description
$user int

id of user to check for

$group int

id of group to check for

Returns
Type Description
bool
method public isOwnedByGroup (int $group) : bool
inherited

checks whether file is owned by group

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::isOwnedByGroup()
Parameters
Name Type Description
$group int
Returns
Type Description
bool
method public isOwnedByUser (int $user) : bool
inherited

checks whether file is owned by given user

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::isOwnedByUser()
Parameters
Name Type Description
$user int
Returns
Type Description
bool
method public isReadable (int $user, int $group) : bool
inherited

checks whether content is readable

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::isReadable()
Parameters
Name Type Description
$user int

id of user to check for

$group int

id of group to check for

Returns
Type Description
bool
method public isWritable (int $user, int $group) : bool
inherited

checks whether content is writable

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::isWritable()
Parameters
Name Type Description
$user int

id of user to check for

$group int

id of group to check for

Returns
Type Description
bool
method public lastAccessed (int $fileatime) : \org\bovigo\vfs\vfsStreamContent
inherited

sets last access time of the stream content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::lastAccessed()
Parameters
Name Type Description
$fileatime int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
Details
Since
0.9
method public lastAttributeModified (int $filectime) : \org\bovigo\vfs\vfsStreamContent
inherited

sets the last attribute modification time of the stream content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::lastAttributeModified()
Parameters
Name Type Description
$filectime int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
Details
Since
0.9
method public lastModified (int $filemtime) : \org\bovigo\vfs\vfsStreamContent
inherited

sets the last modification time of the stream content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::lastModified()
Parameters
Name Type Description
$filemtime int
Returns
Type Description
\org\bovigo\vfs\vfsStreamContent
method public path () : string
inherited

returns path to this content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::path()
Returns
Type Description
string
Details
Since
1.2.0
method public rename (string $newName) : void
inherited

renames the content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::rename()
Parameters
Name Type Description
$newName string
method public size () : int

returns size of content

Returns
Type Description
int
method public url () : string
inherited

returns complete vfsStream url for this content

Inherited from: \org\bovigo\vfs\vfsStreamAbstractContent::url()
Returns
Type Description
string
Details
Since
1.2.0

\org\bovigo\vfs\vfsStreamAbstractContentTestCase

Package: Default
Test for org\bovigo\vfs\vfsStreamAbstractContent.
Parent(s)
\PHPUnit_Framework_TestCase

Methods

method public allPermissionsForGroup () : void

Details
Group
permissions
Group
bug_15
Test
method public allPermissionsForOther () : void

Details
Group
permissions
Group
bug_15
Test
method public allPermissionsForUser () : void

Details
Group
permissions
Group
bug_15
Test
method public executeAndWritePermissionsForGroup () : void

Details
Group
permissions
Group
bug_15
Test
method public executeAndWritePermissionsForOther () : void

Details
Group
permissions
Group
bug_15
Test
method public executeAndWritePermissionsForUser () : void

Details
Group
permissions
Group
bug_15
Test
method public executePermissionsForGroup () : void

Details
Group
permissions
Group
bug_15
Test
method public executePermissionsForOther () : void

Details
Group
permissions
Group
bug_15
Test
method public executePermissionsForUser () : void

Details
Group
permissions
Group
bug_15
Test
method public noPermissionsForEveryone () : void

Details
Group
permissions
Group
bug_15
Test
method public readAndExecutePermissionsForGroup () : void

Details
Group
permissions
Group
bug_15
Test
method public readAndExecutePermissionsForOther () : void

Details
Group
permissions
Group
bug_15
Test
method public readAndExecutePermissionsForUser () : void

Details
Group
permissions
Group
bug_15
Test
method public readAndWritePermissionsForGroup () : void

Details
Group
permissions
Group
bug_15
Test
method public readAndWritePermissionsForOther () : void

Details
Group
permissions
Group
bug_15
Test
method public readAndWritePermissionsForUser () : void

Details
Group
permissions
Group
bug_15
Test
method public readPermissionsForGroup () : void

Details
Group
permissions
Group
bug_15
Test
method public readPermissionsForOther () : void

Details
Group
permissions
Group
bug_15
Test
method public readPermissionsForUser () : void

Details
Group
permissions
Group
bug_15
Test
method public writePermissionsForGroup () : void

Details
Group
permissions
Group
bug_15
Test
method public writePermissionsForOther () : void

Details
Group
permissions
Group
bug_15
Test
method public writePermissionsForUser () : void

Details
Group
permissions
Group
bug_15
Test
Documentation was generated by phpDocumentor 2.0.0a12 .