Documentation

vfsStreamExLockTestCase extends BC_PHPUnit_Framework_TestCase
in package

Test for LOCK_EX behaviour related to file_put_contents().

Tags
group

lock_fpc

author

https://github.com/iwyg

Table of Contents

bc_expectException()  : mixed
bc_getMock()  : mixed
filePutContentsLockShouldReportError()  : mixed
This test verifies the current behaviour where vfsStream URLs do not work with file_put_contents() and LOCK_EX. The test is intended to break once PHP changes this so we get notified about the change.
flockSouldPass()  : mixed
setUp()  : mixed
set up test environment

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

filePutContentsLockShouldReportError()

This test verifies the current behaviour where vfsStream URLs do not work with file_put_contents() and LOCK_EX. The test is intended to break once PHP changes this so we get notified about the change.

public filePutContentsLockShouldReportError() : mixed
Tags
test
Return values
mixed

Search results