Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/phpunit/phpunit/tests/end-to-end/regression/GitHub/498/Issue498Test.php
<?php

use PHPUnit\Framework\TestCase;

class
Issue498Test extends 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]
        ];
    }
}