DoubleTestCase.php 496 B

12345678910111213141516171819202122232425
  1. <?php
  2. class DoubleTestCase implements PHPUnit_Framework_Test
  3. {
  4. protected $testCase;
  5. public function __construct(PHPUnit_Framework_TestCase $testCase)
  6. {
  7. $this->testCase = $testCase;
  8. }
  9. public function count()
  10. {
  11. return 2;
  12. }
  13. public function run(PHPUnit_Framework_TestResult $result = null)
  14. {
  15. $result->startTest($this);
  16. $this->testCase->runBare();
  17. $this->testCase->runBare();
  18. $result->endTest($this, 0);
  19. }
  20. }