RotatingFileHandlerTest
extends TestCase
in package
Tags
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
dateFormatProvider()
public
dateFormatProvider() : mixed
Return values
mixed —filenameFormatProvider()
public
filenameFormatProvider() : mixed
Return values
mixed —rotationTests()
public
rotationTests() : mixed
Return values
mixed —rotationWhenSimilarFilesExistTests()
public
rotationWhenSimilarFilesExistTests() : mixed
Return values
mixed —setUp()
public
setUp() : mixed
Return values
mixed —tearDown()
public
tearDown() : mixed
Return values
mixed —testAllowOnlyFixedDefinedDateFormats()
public
testAllowOnlyFixedDefinedDateFormats(mixed $dateFormat, mixed $valid) : mixed
Parameters
- $dateFormat : mixed
- $valid : mixed
Tags
Return values
mixed —testDisallowFilenameFormatsWithoutDate()
public
testDisallowFilenameFormatsWithoutDate(mixed $filenameFormat, mixed $valid) : mixed
Parameters
- $filenameFormat : mixed
- $valid : mixed
Tags
Return values
mixed —testReuseCurrentFile()
public
testReuseCurrentFile() : mixed
Return values
mixed —testRotation()
public
testRotation(mixed $createFile, mixed $dateFormat, mixed $timeCallback) : mixed
Parameters
- $createFile : mixed
- $dateFormat : mixed
- $timeCallback : mixed
Tags
Return values
mixed —testRotationCreatesNewFile()
public
testRotationCreatesNewFile() : mixed
Return values
mixed —testRotationWhenSimilarFileNamesExist()
public
testRotationWhenSimilarFileNamesExist(mixed $dateFormat) : mixed
Parameters
- $dateFormat : mixed
Tags
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