Overview

Packages

  • Test

Classes

  • Horde_Test_AllTests
  • Horde_Test_Case
  • Horde_Test_Exception
  • Horde_Test_Factory_Alarm
  • Horde_Test_Factory_Cache
  • Horde_Test_Factory_Db
  • Horde_Test_Factory_Group
  • Horde_Test_Factory_History
  • Horde_Test_Factory_KolabStorage
  • Horde_Test_Factory_Perms
  • Horde_Test_Factory_Prefs
  • Horde_Test_Factory_Registry
  • Horde_Test_Factory_Session
  • Horde_Test_Factory_Share
  • Horde_Test_Functional
  • Horde_Test_Log
  • Horde_Test_Setup
  • Horde_Test_Stub_Cli
  • Horde_Test_Stub_Factory
  • Horde_Test_Stub_Parser
  • Horde_Test_Stub_Registry
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Test_Log

Provides utilities to test for log output.

Copyright 2011-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

PHPUnit_Framework_TestCase
Extended by Horde_Test_Case
Extended by Horde_Test_Log
Package: Test
Category: Horde
License: LGPL
Author: Gunnar Wrobel wrobel@pardus.de
Since: Horde_Test 1.1.0
Link: http://www.horde.org/components/Horde_Test
Located at Horde/Test/Log.php
Methods summary
public Horde_Log_Logger
# getLogger( )

Returns a log handler.

Returns a log handler.

Returns

Horde_Log_Logger
public Horde_Log_Logger
# assertLogCount( integer $count )

Asserts that the log contains the given number of messages.

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.

Parameters

$count
The expected number of messages.

Returns

Horde_Log_Logger
public Horde_Log_Logger
# assertLogContains( string $message )

Asserts that the log contains at least one message matching the provided string.

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.

Parameters

$message
The expected log message.

Returns

Horde_Log_Logger
public Horde_Log_Logger
# assertLogRegExp( string $regular_expression )

Asserts that the log contains at least one message matching the provided regular_expression.

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.

Parameters

$regular_expression
The expected regular expression.

Returns

Horde_Log_Logger
Methods inherited from Horde_Test_Case
getConfig(), getMockSkipConstructor()
API documentation generated by ApiGen