🐛 Fix: retour JSON contact

This commit is contained in:
2026-02-04 22:33:46 +01:00
parent f051f3738e
commit 9f89294952
11 changed files with 218 additions and 39 deletions

18
tests/phpmailer.test.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
function assertTrue($cond, $msg) {
if (!$cond) {
fwrite(STDERR, $msg . PHP_EOL);
exit(1);
}
}
$composer = file_get_contents(__DIR__ . '/../composer.json');
assertTrue(strpos($composer, 'phpmailer/phpmailer') !== false, 'missing phpmailer dependency');
$functions = file_get_contents(__DIR__ . '/../includes/functions.php');
assertTrue(strpos($functions, 'PHPMailer') !== false, 'missing PHPMailer usage');
$config = file_get_contents(__DIR__ . '/../includes/config.php');
assertTrue(strpos($config, 'MAIL_HOST') !== false, 'missing mail constants');
fwrite(STDOUT, "OK\n");