Story 4.2: competences outils

This commit is contained in:
2026-02-04 17:46:07 +01:00
parent 485e3103c5
commit 9e7d6659f0
5 changed files with 168 additions and 18 deletions

19
tests/tools.test.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
require_once __DIR__ . '/../includes/functions.php';
function assertTrue($cond, $msg) {
if (!$cond) {
fwrite(STDERR, $msg . PHP_EOL);
exit(1);
}
}
$content = file_get_contents(__DIR__ . '/../pages/skills.php');
assertTrue(strpos($content, 'Outils Démontrables') !== false, 'missing demonstrable section');
assertTrue(strpos($content, 'Autres Outils') !== false, 'missing other tools section');
assertTrue(strpos($content, 'target="_blank"') !== false, 'missing external link target');
$icon = getToolIcon('github');
assertTrue(strpos($icon, '<svg') !== false, 'icon svg missing');
fwrite(STDOUT, "OK\n");