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

22 lines
382 B
PHP

<?php
class DataProviderTest extends PHPUnit_Framework_TestCase
{
/**
* @dataProvider providerMethod
*/
public function testAdd($a, $b, $c)
{
$this->assertEquals($c, $a + $b);
}
public static function providerMethod()
{
return [
[0, 0, 0],
[0, 1, 1],
[1, 1, 3],
[1, 0, 1]
];
}
}