Documentation

RotatingFileHandlerTest extends TestCase
in package

Tags
covers

Table of Contents

$lastError  : mixed
This var should be private but then the anonymous function in the `setUp` method won't be able to set it. `$this` cant't be used in the anonymous function in `setUp` because PHP 5.3 does not support it.
dateFormatProvider()  : mixed
filenameFormatProvider()  : mixed
rotationTests()  : mixed
rotationWhenSimilarFilesExistTests()  : mixed
setUp()  : mixed
tearDown()  : mixed
testAllowOnlyFixedDefinedDateFormats()  : mixed
testDisallowFilenameFormatsWithoutDate()  : mixed
testReuseCurrentFile()  : mixed
testRotation()  : mixed
testRotationCreatesNewFile()  : mixed
testRotationWhenSimilarFileNamesExist()  : mixed
getIdentityFormatter()  : FormatterInterface
getMultipleRecords()  : array<string|int, mixed>
getRecord()  : array<string|int, mixed>
assertErrorWasTriggered()  : mixed

Properties

$lastError

This var should be private but then the anonymous function in the `setUp` method won't be able to set it. `$this` cant't be used in the anonymous function in `setUp` because PHP 5.3 does not support it.

public mixed $lastError

Methods

rotationWhenSimilarFilesExistTests()

public rotationWhenSimilarFilesExistTests() : mixed
Return values
mixed

testAllowOnlyFixedDefinedDateFormats()

public testAllowOnlyFixedDefinedDateFormats(mixed $dateFormat, mixed $valid) : mixed
Parameters
$dateFormat : mixed
$valid : mixed
Tags
dataProvider

dateFormatProvider

Return values
mixed

testDisallowFilenameFormatsWithoutDate()

public testDisallowFilenameFormatsWithoutDate(mixed $filenameFormat, mixed $valid) : mixed
Parameters
$filenameFormat : mixed
$valid : mixed
Tags
dataProvider

filenameFormatProvider

Return values
mixed

testRotation()

public testRotation(mixed $createFile, mixed $dateFormat, mixed $timeCallback) : mixed
Parameters
$createFile : mixed
$dateFormat : mixed
$timeCallback : mixed
Tags
dataProvider

rotationTests

Return values
mixed

testRotationWhenSimilarFileNamesExist()

public testRotationWhenSimilarFileNamesExist(mixed $dateFormat) : mixed
Parameters
$dateFormat : mixed
Tags
dataProvider

rotationWhenSimilarFilesExistTests

Return values
mixed

getIdentityFormatter()

protected getIdentityFormatter() : FormatterInterface
Return values
FormatterInterface

getMultipleRecords()

protected getMultipleRecords() : array<string|int, mixed>
Return values
array<string|int, mixed>

getRecord()

protected getRecord([mixed $level = Logger::WARNING ][, mixed $message = 'test' ][, mixed $context = array() ]) : array<string|int, mixed>
Parameters
$level : mixed = Logger::WARNING
$message : mixed = 'test'
$context : mixed = array()
Return values
array<string|int, mixed>

Record

assertErrorWasTriggered()

private assertErrorWasTriggered(mixed $code, mixed $message) : mixed
Parameters
$code : mixed
$message : mixed
Return values
mixed

Search results