public function 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 drupal/core/vendor/phpunit/phpunit/PHPUnit/Extensions/RepeatedTest.php
Runs the decorated test and collects the result in a TestResult.

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Extensions/TestDecorator.php, line 139

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;
}