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_Case

Basic Horde test case helper.

Copyright 2009-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

Direct known subclasses

Horde_Test_Functional, Horde_Test_Log
Package: Test
Category: Horde
License: LGPL
Author: Chuck Hagenbuch chuck@horde.org
Author: Jan Schneider jan@horde.org
Link: http://www.horde.org/components/Horde_Test
Located at Horde/Test/Case.php
Methods summary
public
# getMockSkipConstructor( mixed $className, array $methods = array(), array $arguments = array(), mixed $mockClassName = '' )

Useful shorthand if you are mocking a class with a private constructor

Useful shorthand if you are mocking a class with a private constructor

public static mixed
# getConfig( string $env, string $path = null, array $default = array() )

Helper method for loading test configuration from a file.

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.

Parameters

$env
An environment variable name.
$path
The path to use.
$default
<p>Some default values that are merged into the configuration if specified as a json hash.</p>

Returns

mixed

The value of the configuration file's $conf variable, or null.

API documentation generated by ApiGen