Documentation

vfsStreamWrapperTestCase extends vfsStreamWrapperBaseTestCase
in package

Test for org\bovigo\vfs\vfsStreamWrapper.

Table of Contents

$bar  : vfsStreamDirectory
sub directory
$barURL  : string
URL of sub directory
$baz1  : vfsStreamFile
a file
$baz1URL  : string
URL of file 1
$baz2  : vfsStreamFile
another file
$baz2URL  : string
URL of file 2
$foo  : vfsStreamDirectory
root directory
$fooURL  : string
URL of root directory
basename()  : mixed
assert basename() returns correct file name
bc_expectException()  : mixed
bc_getMock()  : mixed
chgrp()  : mixed
chgrpDoesNotWorkOnVfsStreamUrls()  : mixed
chmod()  : mixed
file permissions
chmodModifiesPermissions()  : mixed
chownChangesUser()  : mixed
chownDoesNotWorkOnVfsStreamUrls()  : mixed
directoriesAndNonExistingFilesAreSometimesExecutable()  : mixed
assert is_executable() works correct
dirname()  : mixed
assert dirname() returns correct directory name
file_exists()  : mixed
assert that file_exists() delivers correct result
fileCopy()  : mixed
filemtime()  : mixed
assert that filemtime() delivers correct result
fileownerIsCurrentUserByDefault()  : mixed
filesize()  : mixed
assure that filesize is returned correct
groupIsCurrentGroupByDefault()  : mixed
is_executable()  : mixed
assert is_executable() works correct
is_readable()  : mixed
assert is_readable() works correct
is_writable()  : mixed
assert is_writable() works correct
openFileWithoutDirectory()  : mixed
pathesAreCorrectlySet()  : mixed
pathIsUpdatedAfterMove()  : mixed
renameDirectory()  : mixed
renameDirectoryOverwritingExistingFile()  : mixed
renameDirectoryWithDots()  : mixed
renameDirectoryWithDotsInTarget()  : mixed
renameFileIntoFile()  : mixed
renameFileToDirectory()  : mixed
renameOnDestinationDirectoryFileNotFound()  : mixed
assert that trying to rename to a directory that is not found trigger a warning
renameOnSourceFileNotFound()  : mixed
assert that trying to rename from a non existing file trigger a warning
resetByRegister()  : mixed
ensure that a call to vfsStreamWrapper::register() resets the stream
setRootReturnsRoot()  : mixed
setUp()  : mixed
set up test environment
statAndFstatReturnSameResult()  : mixed
stat() and fstat() should return the same result
statReturnsFullDataForDirectories()  : mixed
statReturnsFullDataForDirectoriesWithDot()  : mixed
statReturnsFullDataForFiles()  : mixed
stat() returns full data
touchChangesAccessAndModificationTimeForDirectory()  : mixed
touchChangesAccessAndModificationTimeForFile()  : mixed
touchChangesTimesToCurrentTimestampWhenNoTimesGiven()  : mixed
touchCreatesNonExistingFile()  : mixed
touchWithModifiedTimeChangesAccessAndModifiedTime()  : mixed
truncateRemovesSuperflouosContent()  : mixed
truncateToGreaterSizeAddsZeroBytes()  : mixed
unlinkRemovesFilesOnly()  : mixed
unlinkReturnsFalseWhenFileDoesNotExist()  : mixed
unlinkReturnsFalseWhenFileDoesNotExistAndFileWithSameNameExistsInRoot()  : mixed
urlIsUpdatedAfterMove()  : mixed
urlsAreCorrectlySet()  : mixed

Properties

Methods

basename()

assert basename() returns correct file name

public basename() : mixed
Tags
test
Return values
mixed

bc_expectException()

public bc_expectException(mixed $exception) : mixed
Parameters
$exception : mixed
Return values
mixed

bc_getMock()

public bc_getMock(mixed $originalClassName[, mixed $methods = array() ][, array<string|int, mixed> $arguments = array() ][, mixed $mockClassName = '' ][, mixed $callOriginalConstructor = true ][, mixed $callOriginalClone = true ][, mixed $callAutoload = true ][, mixed $cloneArguments = false ][, mixed $callOriginalMethods = false ][, mixed $proxyTarget = null ]) : mixed
Parameters
$originalClassName : mixed
$methods : mixed = array()
$arguments : array<string|int, mixed> = array()
$mockClassName : mixed = ''
$callOriginalConstructor : mixed = true
$callOriginalClone : mixed = true
$callAutoload : mixed = true
$cloneArguments : mixed = false
$callOriginalMethods : mixed = false
$proxyTarget : mixed = null
Return values
mixed

chgrpDoesNotWorkOnVfsStreamUrls()

public chgrpDoesNotWorkOnVfsStreamUrls() : mixed
Tags
test
group

issue_11

group

permissions

Return values
mixed

chmodModifiesPermissions()

public chmodModifiesPermissions() : mixed
Tags
test
group

issue_11

group

permissions

Return values
mixed

chownChangesUser()

public chownChangesUser() : mixed
Tags
test
group

issue_11

group

permissions

Return values
mixed

chownDoesNotWorkOnVfsStreamUrls()

public chownDoesNotWorkOnVfsStreamUrls() : mixed
Tags
test
group

issue_11

group

permissions

Return values
mixed

directoriesAndNonExistingFilesAreSometimesExecutable()

assert is_executable() works correct

public directoriesAndNonExistingFilesAreSometimesExecutable() : mixed
Tags
test
Return values
mixed

dirname()

assert dirname() returns correct directory name

public dirname() : mixed
Tags
test
Return values
mixed

file_exists()

assert that file_exists() delivers correct result

public file_exists() : mixed
Tags
test
Return values
mixed

filemtime()

assert that filemtime() delivers correct result

public filemtime() : mixed
Tags
test
Return values
mixed

fileownerIsCurrentUserByDefault()

public fileownerIsCurrentUserByDefault() : mixed
Tags
test
group

permissions

Return values
mixed

filesize()

assure that filesize is returned correct

public filesize() : mixed
Tags
test
Return values
mixed

groupIsCurrentGroupByDefault()

public groupIsCurrentGroupByDefault() : mixed
Tags
test
group

issue_11

group

permissions

Return values
mixed

is_executable()

assert is_executable() works correct

public is_executable() : mixed
Tags
test
Return values
mixed

is_readable()

assert is_readable() works correct

public is_readable() : mixed
Tags
test
Return values
mixed

is_writable()

assert is_writable() works correct

public is_writable() : mixed
Tags
test
Return values
mixed

openFileWithoutDirectory()

public openFileWithoutDirectory() : mixed
Tags
test
expectedException

PHPUnit_Framework_Error

Return values
mixed

pathesAreCorrectlySet()

public pathesAreCorrectlySet() : mixed
Tags
test
group

issue_34

since
1.2.0
Return values
mixed

pathIsUpdatedAfterMove()

public pathIsUpdatedAfterMove() : mixed
Tags
test
group

issue_34

since
1.2.0
Return values
mixed

renameDirectory()

public renameDirectory() : mixed
Tags
test
author

Benoit Aubuchon

Return values
mixed

renameDirectoryOverwritingExistingFile()

public renameDirectoryOverwritingExistingFile() : mixed
Tags
test
author

Benoit Aubuchon

Return values
mixed

renameDirectoryWithDotsInTarget()

public renameDirectoryWithDotsInTarget() : mixed
Tags
test
group

issue_9

since
0.9.0
Return values
mixed

renameFileIntoFile()

public renameFileIntoFile() : mixed
Tags
test
expectedException

PHPUnit_Framework_Error

Return values
mixed

renameFileToDirectory()

public renameFileToDirectory() : mixed
Tags
test
author

Benoit Aubuchon

Return values
mixed

renameOnDestinationDirectoryFileNotFound()

assert that trying to rename to a directory that is not found trigger a warning

public renameOnDestinationDirectoryFileNotFound() : mixed
Tags
expectedException

PHPUnit_Framework_Error

test
Return values
mixed

renameOnSourceFileNotFound()

assert that trying to rename from a non existing file trigger a warning

public renameOnSourceFileNotFound() : mixed
Tags
expectedException

PHPUnit_Framework_Error

test
Return values
mixed

resetByRegister()

ensure that a call to vfsStreamWrapper::register() resets the stream

public resetByRegister() : mixed

Implemented after a request by David Zülke.

Tags
test
Return values
mixed

statAndFstatReturnSameResult()

stat() and fstat() should return the same result

public statAndFstatReturnSameResult() : mixed
Tags
test
Return values
mixed

statReturnsFullDataForDirectories()

public statReturnsFullDataForDirectories() : mixed
Tags
test
Return values
mixed

statReturnsFullDataForDirectoriesWithDot()

public statReturnsFullDataForDirectoriesWithDot() : mixed
Tags
test
Return values
mixed

statReturnsFullDataForFiles()

stat() returns full data

public statReturnsFullDataForFiles() : mixed
Tags
test
Return values
mixed

touchChangesAccessAndModificationTimeForDirectory()

public touchChangesAccessAndModificationTimeForDirectory() : mixed
Tags
test
group

issue_11

requires

PHP 5.4.0

Return values
mixed

touchChangesAccessAndModificationTimeForFile()

public touchChangesAccessAndModificationTimeForFile() : mixed
Tags
test
group

issue_11

requires

PHP 5.4.0

Return values
mixed

touchChangesTimesToCurrentTimestampWhenNoTimesGiven()

public touchChangesTimesToCurrentTimestampWhenNoTimesGiven() : mixed
Tags
test
group

issue_11

group

issue_80

requires

PHP 5.4.0

Return values
mixed

touchCreatesNonExistingFile()

public touchCreatesNonExistingFile() : mixed
Tags
test
group

issue_11

requires

PHP 5.4.0

Return values
mixed

touchWithModifiedTimeChangesAccessAndModifiedTime()

public touchWithModifiedTimeChangesAccessAndModifiedTime() : mixed
Tags
test
group

issue_11

requires

PHP 5.4.0

Return values
mixed

truncateRemovesSuperflouosContent()

public truncateRemovesSuperflouosContent() : mixed
Tags
test
group

issue_33

since
1.1.0
requires

PHP 5.4.0

Return values
mixed

truncateToGreaterSizeAddsZeroBytes()

public truncateToGreaterSizeAddsZeroBytes() : mixed
Tags
test
group

issue_33

since
1.1.0
requires

PHP 5.4.0

Return values
mixed

unlinkRemovesFilesOnly()

public unlinkRemovesFilesOnly() : mixed
Tags
test
group

issue_23

Return values
mixed

unlinkReturnsFalseWhenFileDoesNotExist()

public unlinkReturnsFalseWhenFileDoesNotExist() : mixed
Tags
test
group

issue_49

Return values
mixed

unlinkReturnsFalseWhenFileDoesNotExistAndFileWithSameNameExistsInRoot()

public unlinkReturnsFalseWhenFileDoesNotExistAndFileWithSameNameExistsInRoot() : mixed
Tags
test
group

issue_49

Return values
mixed

urlIsUpdatedAfterMove()

public urlIsUpdatedAfterMove() : mixed
Tags
test
group

issue_34

since
1.2.0
Return values
mixed

urlsAreCorrectlySet()

public urlsAreCorrectlySet() : mixed
Tags
test
group

issue_34

since
1.2.0
Return values
mixed

Search results