class DoubleTestCase

Hierarchy

Expanded class hierarchy of DoubleTestCase

File

drupal/core/vendor/phpunit/phpunit/Tests/_files/DoubleTestCase.php, line 2

View source
class DoubleTestCase implements PHPUnit_Framework_Test {
  protected $testCase;
  public function __construct(PHPUnit_Framework_TestCase $testCase) {
    $this->testCase = $testCase;
  }
  public function count() {
    return 2;
  }
  public function run(PHPUnit_Framework_TestResult $result = NULL) {
    $result
      ->startTest($this);
    $this->testCase
      ->runBare();
    $this->testCase
      ->runBare();
    $result
      ->endTest($this, 0);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DoubleTestCase::$testCase protected property
DoubleTestCase::count public function
DoubleTestCase::run public function Runs a test and collects its result in a TestResult instance. Overrides PHPUnit_Framework_Test::run
DoubleTestCase::__construct public function