Source for file TestResult.php
Documentation is available at TestResult.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: TestResult.php,v 1.12 2004/12/22 08:06:11 sebastian Exp $
require_once 'PHPUnit/TestFailure.php';
require_once 'PHPUnit/TestListener.php';
* A TestResult collects the results of executing a test case.
* @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
* Adds an error to the list of errors.
* The passed in exception caused the error.
* Adds a failure to the list of failures.
* The passed in exception caused the failure.
* Registers a TestListener.
is_a($listener, 'PHPUnit_TestListener')) {
* Adds a passed test to the list of passed tests.
* Informs the result that a test was completed.
* Gets the number of detected errors.
* Returns an Enumeration for the errors.
* Gets the number of detected failures.
* Returns an Enumeration for the failures.
* Returns an Enumeration for the passed tests.
* Unregisters a TestListener.
* This requires the Zend Engine 2 (to work properly).
* Gets the number of run tests.
* Checks whether the test run should stop.
* Informs the result that a test will be started.
* Marks that the test run should stop.
* Returns a HTML representation of the test result.
* Returns a text representation of the test result.
"TestCase %s->%s() passed\n",
$result .= $failedTest->toString ();
* Returns whether the entire test was successful or not.
Documentation generated on Mon, 11 Mar 2019 14:22:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|