b0y-101 Mini Shell


Current Path : E:/www/b-group.old/business/applicationmba/vendor/phpunit/phpunit/tests/_files/
File Upload :
Current File : E:/www/b-group.old/business/applicationmba/vendor/phpunit/phpunit/tests/_files/DataProviderTest.php

<?php
use PHPUnit\Framework\TestCase;

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

Copyright © 2019 by b0y-101