3 * This file is part of PHPUnit.
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
12 * A Test can be run and collect its results.
14 * @since Interface available since Release 2.0.0
16 interface PHPUnit_Framework_Test extends Countable
19 * Runs a test and collects its result in a TestResult instance.
21 * @param PHPUnit_Framework_TestResult $result
23 * @return PHPUnit_Framework_TestResult
25 public function run(PHPUnit_Framework_TestResult $result = null);