<?php
require_once 'C:/xampp/htdocs/est-concours/model/core/AbstractPdo.php';
require_once 'C:/xampp/htdocs/est-concours/model/service/SemestreService.php';
require_once 'C:/xampp/htdocs/est-concours/model/service/ModuleService.php';

$sem = new SemestreService();
$mod = new ModuleService();
$semestres = $sem->getAllSemestres();
$modules = $mod->getAllModules();
$bySemestre = $mod->getModulesBySemestre(1);

echo 'semestres=' . count($semestres) . PHP_EOL;
echo 'modules=' . count($modules) . PHP_EOL;
echo 'by_semestre=' . count($bySemestre) . PHP_EOL;
