17 lines
653 B
PHP
17 lines
653 B
PHP
<?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"); |