\Horde_Test_AllTests

Horde base test suite

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

Summary

Methods
Properties
Constants
init()
__construct()
run()
suite()
setup()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_dir
$_package
N/A

Properties

$_dir

$_dir : 

Type

$_package

$_package : 

Type

Methods

init()

init(string  $file) : \Horde_Test_AllTests

Create a Horde_Test_AllTests object.

Parameters

string $file

Filename of the AllTests.php script.

Returns

\Horde_Test_AllTests

Test object.

__construct()

__construct(string  $package, string  $dir) 

Constructor.

Parameters

string $package

The name of the package tested by this suite.

string $dir

The path of the AllTests class.

run()

run() : boolean

Main entry point for running the suite.

Returns

boolean

suite()

suite() : \PHPUnit_Framework_TestSuite

Collect the unit tests of this directory into a new suite.

Returns

\PHPUnit_Framework_TestSuite —

The test suite.

setup()

setup() 

Basic test suite setup. This includes error checking and autoloading.

In the default situation this will set the error reporting to E_ALL | E_STRICT and pull in Horde/Test/Autoload.php as autoloading definition. If there is an Autoload.php in $_dir, then only this file will be used.

In addition the setup() call will attempt to detect the "lib" directory of the component currently under test and add it to the include_path. This ensures that the component code from the checkout is preferred over whatever else might be available in the default include_path.