PHP Class Phalcon\Test\Unit\Logger\Adapter\FileTest

Author: Andres Gutierrez ([email protected])
Author: Nikolaos Dimopoulos ([email protected])
Inheritance: extends Phalcon\Test\Module\UnitTest
Show file Open project: phalcon/cphalcon

Protected Properties

Property Type Description
$logPath

Public Methods

Method Description
_before ( ) executed before each test
testLoggerAdapterFileAlertCreationOfLogFile ( ) Tests the creation of the log file with alert()
testLoggerAdapterFileAlertLogLogging ( ) Tests ALERT logging with alert()
testLoggerAdapterFileAlertLogging ( ) Tests ALERT logging
testLoggerAdapterFileAlertNumberOfMessagesLogged ( ) Tests how many lines the file has on creation with alert()
testLoggerAdapterFileCommit ( ) Tests the begin/commit
testLoggerAdapterFileCreationDefault ( ) Tests the creation of the log file
testLoggerAdapterFileCreationWrite ( ) Tests the creation of the log file +w
testLoggerAdapterFileDebugCreationOfLogFile ( ) Tests the creation of the log file with debug()
testLoggerAdapterFileDebugLogLogging ( ) Tests DEBUG logging with debug()
testLoggerAdapterFileDebugLogging ( ) Tests DEBUG logging
testLoggerAdapterFileDebugNumberOfMessagesLogged ( ) Tests how many lines the file has on creation with debug()
testLoggerAdapterFileDefaultLoggingUsesDebug ( ) Tests default logging uses EMERGENCY
testLoggerAdapterFileErrorCreationOfLogFile ( ) Tests the creation of the log file with error()
testLoggerAdapterFileErrorLogLogging ( ) Tests ERROR logging with error()
testLoggerAdapterFileErrorLogging ( ) Tests ERROR logging
testLoggerAdapterFileErrorNumberOfMessagesLogged ( ) Tests how many lines the file has on creation with error()
testLoggerAdapterFileInfoCreationOfLogFile ( ) Tests the creation of the log file with info()
testLoggerAdapterFileInfoLogLogging ( ) Tests ERROR logging with info()
testLoggerAdapterFileInfoLogging ( ) Tests INFO logging
testLoggerAdapterFileInfoNumberOfMessagesLogged ( ) Tests how many lines the file has on creation with info()
testLoggerAdapterFileMultipleLogLevelsSetProperly ( ) Tests multiple log levels
testLoggerAdapterFileNewFormatFormatsDateCorrectly ( ) Tests new format logs correctly
testLoggerAdapterFileNewFormatLogsCorrectly ( ) Tests new format logs correctly
testLoggerAdapterFileNoticeCreationOfLogFile ( ) Tests the creation of the log file with notice()
testLoggerAdapterFileNoticeLogLogging ( ) Tests NOTICE logging with notice()
testLoggerAdapterFileNoticeLogging ( ) Tests NOTICE logging
testLoggerAdapterFileNoticeNumberOfMessagesLogged ( ) Tests how many lines the file has on creation with notice()
testLoggerAdapterFileNumberOfMessagesLogged ( ) Tests how many lines the file has on creation
testLoggerAdapterFileOpenReadThrowsException ( ) Tests if opening the file with r and logging throws exception
testLoggerAdapterFileRollback ( ) Tests the begin/rollback
testLoggerAdapterFileSetGetFormat ( ) Tests set/getFormat
testLoggerAdapterFileSettingJsonFormatter ( ) Tests setting Json formatter
testLoggerAdapterFileWarningCreationOfLogFile ( ) Tests the creation of the log file with warning()
testLoggerAdapterFileWarningLogLogging ( ) Tests WARNING logging with warning()
testLoggerAdapterFileWarningLogging ( ) Tests WARNING logging
testLoggerAdapterFileWarningNumberOfMessagesLogged ( ) Tests how many lines the file has on creation with warning()
testMultipleLoggers ( ) Tests multiple loggers

Protected Methods

Method Description
createOfLogFile ( string $function ) Runs the test for the creation of a file with logging
logging ( $function ) Runs logging test
numberOfMessagesLogged ( string $function ) Runs the test for how many lines the file has on creation
runLogging ( mixed $level, null $name = null ) Runs the various logging function testLoggerAdapterFiles

Method Details

_before() public method

executed before each test
public _before ( )

createOfLogFile() protected method

Runs the test for the creation of a file with logging
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])
protected createOfLogFile ( string $function )
$function string

logging() protected method

Runs logging test
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])
protected logging ( $function )
$function

numberOfMessagesLogged() protected method

Runs the test for how many lines the file has on creation
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])
protected numberOfMessagesLogged ( string $function )
$function string

runLogging() protected method

Runs the various logging function testLoggerAdapterFiles
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])
protected runLogging ( mixed $level, null $name = null )
$level mixed
$name null

testLoggerAdapterFileAlertCreationOfLogFile() public method

Tests the creation of the log file with alert()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileAlertLogLogging() public method

Tests ALERT logging with alert()
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileAlertLogging() public method

Tests ALERT logging
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileAlertNumberOfMessagesLogged() public method

Tests how many lines the file has on creation with alert()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileCommit() public method

Tests the begin/commit
Since: 2014-09-13
Author: Nikolaos Dimopoulos ([email protected])

testLoggerAdapterFileCreationDefault() public method

Tests the creation of the log file
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileCreationWrite() public method

Tests the creation of the log file +w
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileDebugCreationOfLogFile() public method

Tests the creation of the log file with debug()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileDebugLogLogging() public method

Tests DEBUG logging with debug()
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileDebugLogging() public method

Tests DEBUG logging
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileDebugNumberOfMessagesLogged() public method

Tests how many lines the file has on creation with debug()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileDefaultLoggingUsesDebug() public method

Tests default logging uses EMERGENCY
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileErrorCreationOfLogFile() public method

Tests the creation of the log file with error()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileErrorLogLogging() public method

Tests ERROR logging with error()
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileErrorLogging() public method

Tests ERROR logging
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileErrorNumberOfMessagesLogged() public method

Tests how many lines the file has on creation with error()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileInfoCreationOfLogFile() public method

Tests the creation of the log file with info()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileInfoLogLogging() public method

Tests ERROR logging with info()
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileInfoLogging() public method

Tests INFO logging
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileInfoNumberOfMessagesLogged() public method

Tests how many lines the file has on creation with info()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileMultipleLogLevelsSetProperly() public method

Tests multiple log levels
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileNewFormatFormatsDateCorrectly() public method

Tests new format logs correctly
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileNewFormatLogsCorrectly() public method

Tests new format logs correctly
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileNoticeCreationOfLogFile() public method

Tests the creation of the log file with notice()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileNoticeLogLogging() public method

Tests NOTICE logging with notice()
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileNoticeLogging() public method

Tests NOTICE logging
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileNoticeNumberOfMessagesLogged() public method

Tests how many lines the file has on creation with notice()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileNumberOfMessagesLogged() public method

Tests how many lines the file has on creation
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileOpenReadThrowsException() public method

Tests if opening the file with r and logging throws exception
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileRollback() public method

Tests the begin/rollback
Since: 2014-09-13
Author: Nikolaos Dimopoulos ([email protected])

testLoggerAdapterFileSetGetFormat() public method

Tests set/getFormat
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileSettingJsonFormatter() public method

Tests setting Json formatter
Since: 2016-01-28
Author: Serghei Iakovlev ([email protected])

testLoggerAdapterFileWarningCreationOfLogFile() public method

Tests the creation of the log file with warning()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileWarningLogLogging() public method

Tests WARNING logging with warning()
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileWarningLogging() public method

Tests WARNING logging
Since: 2012-09-17
Author: Nikos Dimopoulos ([email protected])

testLoggerAdapterFileWarningNumberOfMessagesLogged() public method

Tests how many lines the file has on creation with warning()
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])

testMultipleLoggers() public method

Tests multiple loggers
Since: 2016-01-28
Author: Serghei Iakovlev ([email protected])
public testMultipleLoggers ( )

Property Details

$logPath protected property

protected $logPath