Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / _files / DoubleTestCase.php
diff --git a/vendor/phpunit/phpunit/tests/_files/DoubleTestCase.php b/vendor/phpunit/phpunit/tests/_files/DoubleTestCase.php
new file mode 100644 (file)
index 0000000..b1f00a8
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+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);
+    }
+}