mirror of
https://github.com/TheAlgorithms/PHP.git
synced 2025-01-17 15:18:13 +01:00
16 lines
382 B
PHP
16 lines
382 B
PHP
<?php
|
|
|
|
use function PHPUnit\Framework\assertEquals;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
require_once __DIR__ . '/../Conversions/DecimalToBinary.php';
|
|
|
|
class DecimalToBinaryTest extends TestCase
|
|
{
|
|
public function testDecimalToBinary()
|
|
{
|
|
assertEquals(decToBin(7), '111');
|
|
assertEquals(decToBin(5), '101');
|
|
}
|
|
} |