Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 498 / Issue498Test.php
diff --git a/vendor/phpunit/phpunit/tests/Regression/GitHub/498/Issue498Test.php b/vendor/phpunit/phpunit/tests/Regression/GitHub/498/Issue498Test.php
new file mode 100644 (file)
index 0000000..49fa764
--- /dev/null
@@ -0,0 +1,44 @@
+<?php
+
+class Issue498Test extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @test
+     * @dataProvider shouldBeTrueDataProvider
+     * @group falseOnly
+     */
+    public function shouldBeTrue($testData)
+    {
+        $this->assertTrue(true);
+    }
+
+    /**
+     * @test
+     * @dataProvider shouldBeFalseDataProvider
+     * @group trueOnly
+     */
+    public function shouldBeFalse($testData)
+    {
+        $this->assertFalse(false);
+    }
+
+    public function shouldBeTrueDataProvider()
+    {
+
+        //throw new Exception("Can't create the data");
+        return array(
+            array(true),
+            array(false)
+        );
+    }
+
+    public function shouldBeFalseDataProvider()
+    {
+        throw new Exception("Can't create the data");
+
+        return array(
+            array(true),
+            array(false)
+        );
+    }
+}