vfsStreamWrapperFileTimesTestCase
extends BC_PHPUnit_Framework_TestCase
in package
Test for org\bovigo\vfs\vfsStreamWrapper.
Tags
Table of Contents
- $barUrl : string
- URL of bar directory
- $bazUrl : string
- URL of baz.txt file
- $fooUrl : string
- URL of foo.txt file
- addNewFileNameWithLinkFunctionChangesAttributeAndModificationTimeOfDirectoryContainingLink() : mixed
- addNewFileNameWithLinkFunctionChangesAttributeTimeOfOriginalFile() : mixed
- bc_expectException() : mixed
- bc_getMock() : mixed
- changeFileAttributesChangesAttributeTimeOfFileItself() : mixed
- createNewFileChangesAttributeAndModificationTimeOfContainingDirectory() : mixed
- createNewFileSetsAllTimesToCurrentTime() : mixed
- fileGetContentsChangesAttributeTimeOnly() : mixed
- openFileChangesAttributeTimeOnly() : mixed
- openFileWithTruncateChangesAttributeAndModificationTime() : mixed
- readFileChangesAccessTime() : mixed
- removeFileChangesAttributeAndModificationTimeOfContainingDirectory() : mixed
- renameFileChangesAttributeAndModificationTimeOfAffectedDirectories() : mixed
- renameFileDoesNotChangeFileTimesOfFileItself() : mixed
- setUp() : mixed
- set up test environment
- writeFileChangesModificationTime() : mixed
- assertFileTimesEqualStreamTimes() : mixed
- helper assertion for the tests
Properties
$barUrl
URL of bar directory
protected
string
$barUrl
$bazUrl
URL of baz.txt file
protected
string
$bazUrl
$fooUrl
URL of foo.txt file
protected
string
$fooUrl
Methods
addNewFileNameWithLinkFunctionChangesAttributeAndModificationTimeOfDirectoryContainingLink()
public
addNewFileNameWithLinkFunctionChangesAttributeAndModificationTimeOfDirectoryContainingLink() : mixed
Tags
Return values
mixed —addNewFileNameWithLinkFunctionChangesAttributeTimeOfOriginalFile()
public
addNewFileNameWithLinkFunctionChangesAttributeTimeOfOriginalFile() : mixed
Tags
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 —changeFileAttributesChangesAttributeTimeOfFileItself()
public
changeFileAttributesChangesAttributeTimeOfFileItself() : mixed
Tags
Return values
mixed —createNewFileChangesAttributeAndModificationTimeOfContainingDirectory()
public
createNewFileChangesAttributeAndModificationTimeOfContainingDirectory() : mixed
Tags
Return values
mixed —createNewFileSetsAllTimesToCurrentTime()
public
createNewFileSetsAllTimesToCurrentTime() : mixed
Tags
Return values
mixed —fileGetContentsChangesAttributeTimeOnly()
public
fileGetContentsChangesAttributeTimeOnly() : mixed
Tags
Return values
mixed —openFileChangesAttributeTimeOnly()
public
openFileChangesAttributeTimeOnly() : mixed
Tags
Return values
mixed —openFileWithTruncateChangesAttributeAndModificationTime()
public
openFileWithTruncateChangesAttributeAndModificationTime() : mixed
Tags
Return values
mixed —readFileChangesAccessTime()
public
readFileChangesAccessTime() : mixed
Tags
Return values
mixed —removeFileChangesAttributeAndModificationTimeOfContainingDirectory()
public
removeFileChangesAttributeAndModificationTimeOfContainingDirectory() : mixed
Tags
Return values
mixed —renameFileChangesAttributeAndModificationTimeOfAffectedDirectories()
public
renameFileChangesAttributeAndModificationTimeOfAffectedDirectories() : mixed
Tags
Return values
mixed —renameFileDoesNotChangeFileTimesOfFileItself()
public
renameFileDoesNotChangeFileTimesOfFileItself() : mixed
Tags
Return values
mixed —setUp()
set up test environment
public
setUp() : mixed
Return values
mixed —writeFileChangesModificationTime()
public
writeFileChangesModificationTime() : mixed
Tags
Return values
mixed —assertFileTimesEqualStreamTimes()
helper assertion for the tests
protected
assertFileTimesEqualStreamTimes(string $url, vfsStreamContent $content) : mixed
Parameters
- $url : string
-
url to check
- $content : vfsStreamContent
-
content to compare