Documentation

AllTests
in package

Horde base test suite

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

Tags
category

Horde

author

Jan Schneider jan@horde.org

author

Gunnar Wrobel wrobel@pardus.de

license

http://www.horde.org/licenses/lgpl21 LGPL

link
http://www.horde.org/components/Horde_Test

Table of Contents

$dir  : mixed
$package  : mixed
__construct()  : mixed
Constructor.
init()  : AllTests
Create a Horde\Test\AllTests object.
run()  : bool
Main entry point for running the suite.
setup()  : mixed
Basic test suite setup. This includes error checking and autoloading.
suite()  : TestSuite
Collect the unit tests of this directory into a new suite.

Properties

Methods

__construct()

Constructor.

public __construct(string $package, string $dir) : mixed
Parameters
$package : string

The name of the package tested by this suite.

$dir : string

The path of the AllTests class.

Return values
mixed

init()

Create a Horde\Test\AllTests object.

public static init(string $file) : AllTests
Parameters
$file : string

Filename of the AllTests.php script.

Return values
AllTests

Test object.

run()

Main entry point for running the suite.

public run() : bool
Return values
bool

setup()

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

public setup() : mixed

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.

Return values
mixed

suite()

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

public suite() : TestSuite
Return values
TestSuite

The test suite.

Search results