Source for file PEAR.php
Documentation is available at PEAR.php
// +------------------------------------------------------------------------+
// +------------------------------------------------------------------------+
// | Copyright (c) 2002-2005 Sebastian Bergmann <sb@sebastian-bergmann.de>. |
// +------------------------------------------------------------------------+
// | This source file is subject to version 3.00 of the PHP License, |
// | that is available at http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
// $Id: PEAR.php,v 1.4.2.2 2005/02/04 10:01:55 sebastian Exp $
require_once 'PHPUnit2/Framework/AssertionFailedError.php';
require_once 'PHPUnit2/Framework/Test.php';
require_once 'PHPUnit2/Framework/TestFailure.php';
require_once 'PHPUnit2/Framework/TestListener.php';
require_once 'PHPUnit2/Framework/TestResult.php';
require_once 'PHPUnit2/Framework/TestSuite.php';
* @author Sebastian Bergmann <sb@sebastian-bergmann.de>
* @copyright Copyright © 2002-2005 Sebastian Bergmann <sb@sebastian-bergmann.de>
* @license http://www.php.net/license/3_0.txt The PHP License, Version 3.0
// {{{ Instance Variables
// {{{ public function __construct($type, $name = '', $ident = '', $conf = array(), $maxLevel = PEAR_LOG_DEBUG)
* @param string $type The type of concrete Log subclass to use.
* Currently, valid values are 'console',
* 'syslog', 'sql', 'file', and 'mcal'.
* @param string $name The name of the actually log file, table, or
* other specific store to use. Defaults to an
* empty string, with which the subclass will
* attempt to do something intelligent.
* @param string $ident The identity reported to the log system.
* @param array $conf A hash containing any additional configuration
* information that a subclass might need.
* @param int $maxLevel Maximum priority level at which to log.
public function __construct($type, $name = '', $ident = '', $conf = array (), $maxLevel = PEAR_LOG_DEBUG ) {
$this->log = Log ::factory ($type, $name, $ident, $conf, $maxLevel);
// {{{ public function addError(PHPUnit2_Framework_Test $test, Exception $e)
* @param PHPUnit2_Framework_Test $test
public function addError(PHPUnit2_Framework_Test $test, Exception $e) {
// {{{ public function addFailure(PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $e)
* @param PHPUnit2_Framework_Test $test
* @param PHPUnit2_Framework_AssertionFailedError $e
public function addFailure(PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $e) {
// {{{ public function addIncompleteTest(PHPUnit2_Framework_Test $test, Exception $e)
* @param PHPUnit2_Framework_Test $test
'Test "%s" incomplete: %s',
// {{{ public function startTestSuite(PHPUnit2_Framework_TestSuite $suite)
* @param PHPUnit2_Framework_TestSuite $suite
'TestSuite "%s" started.',
// {{{ public function endTestSuite(PHPUnit2_Framework_TestSuite $suite)
* @param PHPUnit2_Framework_TestSuite $suite
public function endTestSuite(PHPUnit2_Framework_TestSuite $suite) {
// {{{ public function startTest(PHPUnit2_Framework_Test $test)
* @param PHPUnit2_Framework_Test $test
public function startTest(PHPUnit2_Framework_Test $test) {
// {{{ public function endTest(PHPUnit2_Framework_Test $test)
* @param PHPUnit2_Framework_Test $test
public function endTest(PHPUnit2_Framework_Test $test) {
* vim600: et sw=2 ts=2 fdm=marker
Documentation generated on Mon, 11 Mar 2019 14:19:18 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|