Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / _files / DataProviderSkippedTest.php
diff --git a/vendor/phpunit/phpunit/tests/_files/DataProviderSkippedTest.php b/vendor/phpunit/phpunit/tests/_files/DataProviderSkippedTest.php
new file mode 100644 (file)
index 0000000..ec67ce5
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+class DataProviderSkippedTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @dataProvider skippedTestProviderMethod
+     */
+    public function testSkipped($a, $b, $c)
+    {
+        $this->assertTrue(true);
+    }
+
+    /**
+     * @dataProvider providerMethod
+     */
+    public function testAdd($a, $b, $c)
+    {
+        $this->assertEquals($c, $a + $b);
+    }
+
+    public function skippedTestProviderMethod()
+    {
+        $this->markTestSkipped('skipped');
+
+        return array(
+          array(0, 0, 0),
+          array(0, 1, 1),
+        );
+    }
+
+    public static function providerMethod()
+    {
+        return array(
+          array(0, 0, 0),
+          array(0, 1, 1),
+        );
+    }
+}