| 1 | <?php |
| 2 | |
| 3 | use PHPUnit\Framework\TestCase; |
| 4 | |
| 5 | require_once __DIR__ . "/../src/recomienda.php"; |
| 6 | |
| 7 | final class RecomiendaTest extends TestCase |
| 8 | { |
| 9 | public function testPop() |
| 10 | { |
| 11 | $this->assertEquals("Dua Lipa.", recomienda("pop"), "Probando pop"); |
| 12 | } |
| 13 | public function testReg() |
| 14 | { |
| 15 | $this->assertEquals("Bad Bunny.", recomienda("reg"), "Probando reg"); |
| 16 | } |
| 17 | public function testReg2() |
| 18 | { |
| 19 | $this->assertEquals("Daddy Yankee.", recomienda("reg"), "Probando reg 2"); |
| 20 | } |
| 21 | } |
| 22 |