clam2021/vendor/phpunit/phpunit/tests/_files/DataProviderIncompleteTest.php
2021-05-13 13:04:00 -03:00

38 lines
694 B
PHP

<?php
class DataProviderIncompleteTest extends PHPUnit_Framework_TestCase
{
/**
* @dataProvider incompleteTestProviderMethod
*/
public function testIncomplete($a, $b, $c)
{
$this->assertTrue(true);
}
/**
* @dataProvider providerMethod
*/
public function testAdd($a, $b, $c)
{
$this->assertEquals($c, $a + $b);
}
public function incompleteTestProviderMethod()
{
$this->markTestIncomplete('incomplete');
return [
[0, 0, 0],
[0, 1, 1],
];
}
public static function providerMethod()
{
return [
[0, 0, 0],
[0, 1, 1],
];
}
}