File "DataProviderTest.php"

Full Path: /www/wwwroot/shphe-en.com/smsapi/api_sdk/vendor/phpunit/phpunit/tests/_files/DataProviderTest.php
File size: 407 bytes
MIME-type: --
Charset: utf-8

<?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 array(
          array(0, 0, 0),
          array(0, 1, 1),
          array(1, 1, 3),
          array(1, 0, 1)
        );
    }
}