Documentation

vfsStreamFileTestCase extends BC_PHPUnit_Framework_TestCase
in package

Test for org\bovigo\vfs\vfsStreamFile.

Table of Contents

$file  : vfsStreamFile
instance to test
bc_expectException()  : mixed
bc_getMock()  : mixed
content()  : mixed
test setting and getting the content of a file
defaultValues()  : mixed
test default values and methods
group()  : mixed
setting and retrieving owner group of a file
owner()  : mixed
setting and retrieving owner of a file
permissions()  : mixed
setting and retrieving permissions for a file
permissionsSet()  : mixed
setting and retrieving permissions for a file
read()  : mixed
test reading contents from the file
readEmptyFile()  : mixed
test reading contents from the file
rename()  : mixed
test renaming the directory
seekEmptyFile()  : mixed
test seeking to offset
seekEmptyFileBeforeBeginningDoesNotChangeOffset()  : mixed
seekFileBeforeBeginningDoesNotChangeOffset()  : mixed
seekRead()  : mixed
test seeking to offset
setUp()  : mixed
set up test environment
truncateRemovesSuperflouosContent()  : mixed
truncateToGreaterSizeAddsZeroBytes()  : mixed
withContentAcceptsAnyFileContentInstance()  : mixed
withContentThrowsInvalidArgumentExceptionWhenContentIsNoStringAndNoFileContent()  : mixed
write()  : mixed
test writing data into the file
writeEmptyFile()  : mixed
test writing data into the file

Properties

Methods

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

content()

test setting and getting the content of a file

public content() : mixed
Tags
test
Return values
mixed

defaultValues()

test default values and methods

public defaultValues() : mixed
Tags
test
Return values
mixed

group()

setting and retrieving owner group of a file

public group() : mixed
Tags
test
group

permissions

Return values
mixed

owner()

setting and retrieving owner of a file

public owner() : mixed
Tags
test
group

permissions

Return values
mixed

permissions()

setting and retrieving permissions for a file

public permissions() : mixed
Tags
test
group

permissions

Return values
mixed

permissionsSet()

setting and retrieving permissions for a file

public permissionsSet() : mixed
Tags
test
group

permissions

Return values
mixed

read()

test reading contents from the file

public read() : mixed
Tags
test
Return values
mixed

readEmptyFile()

test reading contents from the file

public readEmptyFile() : mixed
Tags
test
Return values
mixed

rename()

test renaming the directory

public rename() : mixed
Tags
test
Return values
mixed

seekEmptyFile()

test seeking to offset

public seekEmptyFile() : mixed
Tags
test
Return values
mixed

seekEmptyFileBeforeBeginningDoesNotChangeOffset()

public seekEmptyFileBeforeBeginningDoesNotChangeOffset() : mixed
Tags
test
since
1.6.5
Return values
mixed

seekFileBeforeBeginningDoesNotChangeOffset()

public seekFileBeforeBeginningDoesNotChangeOffset() : mixed
Tags
test
since
1.6.5
Return values
mixed

seekRead()

test seeking to offset

public seekRead() : mixed
Tags
test
Return values
mixed

truncateRemovesSuperflouosContent()

public truncateRemovesSuperflouosContent() : mixed
Tags
test
group

issue_33

since
1.1.0
Return values
mixed

truncateToGreaterSizeAddsZeroBytes()

public truncateToGreaterSizeAddsZeroBytes() : mixed
Tags
test
group

issue_33

since
1.1.0
Return values
mixed

withContentAcceptsAnyFileContentInstance()

public withContentAcceptsAnyFileContentInstance() : mixed
Tags
test
group

issue_79

since
1.3.0
Return values
mixed

withContentThrowsInvalidArgumentExceptionWhenContentIsNoStringAndNoFileContent()

public withContentThrowsInvalidArgumentExceptionWhenContentIsNoStringAndNoFileContent() : mixed
Tags
test
group

issue_79

expectedException

\InvalidArgumentException

since
1.3.0
Return values
mixed

write()

test writing data into the file

public write() : mixed
Tags
test
Return values
mixed

writeEmptyFile()

test writing data into the file

public writeEmptyFile() : mixed
Tags
test
Return values
mixed

Search results