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
$file
instance to test
protected
vfsStreamFile
$file
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
Return values
mixed —defaultValues()
test default values and methods
public
defaultValues() : mixed
Tags
Return values
mixed —group()
setting and retrieving owner group of a file
public
group() : mixed
Tags
Return values
mixed —owner()
setting and retrieving owner of a file
public
owner() : mixed
Tags
Return values
mixed —permissions()
setting and retrieving permissions for a file
public
permissions() : mixed
Tags
Return values
mixed —permissionsSet()
setting and retrieving permissions for a file
public
permissionsSet() : mixed
Tags
Return values
mixed —read()
test reading contents from the file
public
read() : mixed
Tags
Return values
mixed —readEmptyFile()
test reading contents from the file
public
readEmptyFile() : mixed
Tags
Return values
mixed —rename()
test renaming the directory
public
rename() : mixed
Tags
Return values
mixed —seekEmptyFile()
test seeking to offset
public
seekEmptyFile() : mixed
Tags
Return values
mixed —seekEmptyFileBeforeBeginningDoesNotChangeOffset()
public
seekEmptyFileBeforeBeginningDoesNotChangeOffset() : mixed
Tags
Return values
mixed —seekFileBeforeBeginningDoesNotChangeOffset()
public
seekFileBeforeBeginningDoesNotChangeOffset() : mixed
Tags
Return values
mixed —seekRead()
test seeking to offset
public
seekRead() : mixed
Tags
Return values
mixed —setUp()
set up test environment
public
setUp() : mixed
Return values
mixed —truncateRemovesSuperflouosContent()
public
truncateRemovesSuperflouosContent() : mixed
Tags
Return values
mixed —truncateToGreaterSizeAddsZeroBytes()
public
truncateToGreaterSizeAddsZeroBytes() : mixed
Tags
Return values
mixed —withContentAcceptsAnyFileContentInstance()
public
withContentAcceptsAnyFileContentInstance() : mixed
Tags
Return values
mixed —withContentThrowsInvalidArgumentExceptionWhenContentIsNoStringAndNoFileContent()
public
withContentThrowsInvalidArgumentExceptionWhenContentIsNoStringAndNoFileContent() : mixed
Tags
Return values
mixed —write()
test writing data into the file
public
write() : mixed
Tags
Return values
mixed —writeEmptyFile()
test writing data into the file
public
writeEmptyFile() : mixed