You are here

class DoubleTestCase in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/_files/DoubleTestCase.php \DoubleTestCase

Hierarchy

Expanded class hierarchy of DoubleTestCase

File

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