$_logHandler
$_logHandler : \Horde_Log_Handler_Base
The log handler.
Provides utilities to test for log output.
Copyright 2011-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
getConfig(string $env, string $path = null, array $default = array()) : mixed
Helper method for loading test configuration from a file.
The configuration can be specified by an environment variable. If the variable content is a file name, the configuration is loaded from the file. Otherwise it's assumed to be a json encoded configuration hash. If the environment variable is not set, the method tries to load a conf.php file from the same directory as the test case.
string | $env | An environment variable name. |
string | $path | The path to use. |
array | $default | Some default values that are merged into the configuration if specified as a json hash. |
The value of the configuration file's $conf variable, or null.
assertLogCount(integer $count) : \Horde_Log_Logger
Asserts that the log contains the given number of messages.
You MUST fetch the logger via $this->getLogger() before using this method. This will store a reference to an internal mock log handler that will later be used to analyze the log events.
integer | $count | The expected number of messages. |
assertLogContains(string $message) : \Horde_Log_Logger
Asserts that the log contains at least one message matching the provided string.
You MUST fetch the logger via $this->getLogger() before using this method. This will store a reference to an internal mock log handler that will later be used to analyze the log events.
string | $message | The expected log message. |
assertLogRegExp(string $regular_expression) : \Horde_Log_Logger
Asserts that the log contains at least one message matching the provided regular_expression.
You MUST fetch the logger via $this->getLogger() before using this method. This will store a reference to an internal mock log handler that will later be used to analyze the log events.
string | $regular_expression | The expected regular expression. |