Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 498 / Issue498Test.php
1 <?php
2
3 class Issue498Test extends PHPUnit_Framework_TestCase
4 {
5     /**
6      * @test
7      * @dataProvider shouldBeTrueDataProvider
8      * @group falseOnly
9      */
10     public function shouldBeTrue($testData)
11     {
12         $this->assertTrue(true);
13     }
14
15     /**
16      * @test
17      * @dataProvider shouldBeFalseDataProvider
18      * @group trueOnly
19      */
20     public function shouldBeFalse($testData)
21     {
22         $this->assertFalse(false);
23     }
24
25     public function shouldBeTrueDataProvider()
26     {
27
28         //throw new Exception("Can't create the data");
29         return array(
30             array(true),
31             array(false)
32         );
33     }
34
35     public function shouldBeFalseDataProvider()
36     {
37         throw new Exception("Can't create the data");
38
39         return array(
40             array(true),
41             array(false)
42         );
43     }
44 }