<?php
use PHPUnit\Framework\TestCase;
require_once __DIR__ . '/../src/filieres.php';
final class FilieresTest extends TestCase {
    public function testHuitFilieresAvecClesRequises(): void {
        $f = filieres();
        $this->assertSame(['RH','GES','FIN','TH','INFO','BTP','ATPV','ATPA'], array_keys($f));
        foreach ($f as $code => $d) {
            foreach (['nom','accroche','description'] as $k) $this->assertNotEmpty($d[$k], "$code.$k");
            $this->assertIsArray($d['debouches']);
            $this->assertNotEmpty($d['debouches'], "$code.debouches");
        }
    }
}
