Story 4.4: passions

This commit is contained in:
2026-02-04 18:22:54 +01:00
parent 63691bd8b2
commit c492208939
4 changed files with 102 additions and 18 deletions

17
tests/passions.test.php Normal file
View File

@@ -0,0 +1,17 @@
<?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/about.php');
assertTrue(strpos($content, 'En Dehors du Code') !== false, 'missing passions section');
assertTrue(strpos($content, 'Projets Open Source') !== false, 'missing open source card');
assertTrue(strpos($content, 'https://github.com/skycel') !== false, 'missing github link');
assertTrue(strpos($content, 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3') !== false, 'missing responsive grid');
fwrite(STDOUT, "OK\n");

View File

@@ -18,4 +18,5 @@ php (Join-Path $here 'images.test.php')
php (Join-Path $here 'skills.test.php')
php (Join-Path $here 'tools.test.php')
php (Join-Path $here 'about.test.php')
php (Join-Path $here 'passions.test.php')
'OK'