19use PHPUnit\Framework\TestCase;
31 protected function setUp(): void
36 #[\PHPUnit\Framework\Attributes\DataProvider('gcdData')]
37 public function testGcd(
string $a,
string $b,
string $result): void
48 [
'1254',
'5298',
'6'],
49 [
'41414124',
'41414124',
'41414124']
testGcd(string $a, string $b, string $result)
static getGreatestCommonDivisor($a, $b)
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples