Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / _files / DoubleTestCase.php
1 <?php
2 class DoubleTestCase implements PHPUnit_Framework_Test
3 {
4     protected $testCase;
5
6     public function __construct(PHPUnit_Framework_TestCase $testCase)
7     {
8         $this->testCase = $testCase;
9     }
10
11     public function count()
12     {
13         return 2;
14     }
15
16     public function run(PHPUnit_Framework_TestResult $result = null)
17     {
18         $result->startTest($this);
19
20         $this->testCase->runBare();
21         $this->testCase->runBare();
22
23         $result->endTest($this, 0);
24     }
25 }