Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/phpunit/phpunit/tests/Regression/GitHub/498/Issue498Test.php')
-rw-r--r--vendor/phpunit/phpunit/tests/Regression/GitHub/498/Issue498Test.php44
1 files changed, 44 insertions, 0 deletions
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
index 0000000..5d22aac
--- /dev/null
+++ b/vendor/phpunit/phpunit/tests/Regression/GitHub/498/Issue498Test.php
@@ -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 [
+ [true],
+ [false]
+ ];
+ }
+
+ public function shouldBeFalseDataProvider()
+ {
+ throw new Exception("Can't create the data");
+
+ return [
+ [true],
+ [false]
+ ];
+ }
+}