You are here

public function PHPUnit_Extensions_TestDecorator::run in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Extensions/TestDecorator.php \PHPUnit_Extensions_TestDecorator::run()

Runs the decorated test and collects the result in a TestResult.

Parameters

PHPUnit_Framework_TestResult $result:

Return value

PHPUnit_Framework_TestResult

Overrides PHPUnit_Framework_Test::run

1 method overrides PHPUnit_Extensions_TestDecorator::run()
PHPUnit_Extensions_RepeatedTest::run in vendor/phpunit/phpunit/src/Extensions/RepeatedTest.php
Runs the decorated test and collects the result in a TestResult.

File

vendor/phpunit/phpunit/src/Extensions/TestDecorator.php, line 98

Class

PHPUnit_Extensions_TestDecorator
A Decorator for Tests.

Code

public function run(PHPUnit_Framework_TestResult $result = null) {
  if ($result === null) {
    $result = $this
      ->createResult();
  }
  $this
    ->basicRun($result);
  return $result;
}