for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of dispositif/wikibot application
* 2019 : Philippe M. <[email protected]>
* For the full copyright and MIT license information, please view the LICENSE file.
*/
declare(strict_types=1);
namespace App\Domain\Tests;
use App\Domain\Utils\NumberUtil;
use PHPUnit\Framework\TestCase;
class NumberUtilTest extends TestCase
{
* @dataProvider provideArab2roman
* @param int $number
* @param string $expected
public function testArab2roman(int $number, ?string $expected)
$this::assertSame(
$expected,
NumberUtil::arab2roman($number)
);
}
public function provideArab2roman(): array
return [
[24, 'XXIV'],
[-12, null],
];