gmarche/vendor/phpunit/phpunit/tests/_files/DataProviderSkippedTest.php

38 lines
676 B
PHP
Raw Permalink Normal View History

2019-10-25 00:13:47 +02:00
<?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 [
[0, 0, 0],
[0, 1, 1],
];
}
public static function providerMethod()
{
return [
[0, 0, 0],
[0, 1, 1],
];
}
}