PHP 클래스 Horde_Test_AllTests, horde

Copyright 2009-2016 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.
저자: Jan Schneider ([email protected])
저자: Gunnar Wrobel ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $package, string $dir ) Constructor.
init ( string $file ) : Horde_Test_AllTests Create a Horde_Test_AllTests object.
run ( ) : boolean Main entry point for running the suite.
setup ( ) Basic test suite setup. This includes error checking and autoloading.
suite ( ) : PHPUnit_Framework_TestSuite Collect the unit tests of this directory into a new suite.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $package, string $dir )
$package string The name of the package tested by this suite.
$dir string The path of the AllTests class.

init() 공개 정적인 메소드

Create a Horde_Test_AllTests object.
public static init ( string $file ) : Horde_Test_AllTests
$file string Filename of the AllTests.php script.
리턴 Horde_Test_AllTests Test object.

run() 공개 메소드

Main entry point for running the suite.
public run ( ) : boolean
리턴 boolean

setup() 공개 메소드

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.
public setup ( )

suite() 공개 메소드

Collect the unit tests of this directory into a new suite.
public suite ( ) : PHPUnit_Framework_TestSuite
리턴 PHPUnit_Framework_TestSuite The test suite.