diff --git a/tests/SecurityPhpIniTest.php b/tests/SecurityPhpIniTest.php new file mode 100644 index 0000000..dded575 --- /dev/null +++ b/tests/SecurityPhpIniTest.php @@ -0,0 +1,67 @@ + 0) { + echo "【测试结论】共 {$failedCount} 项安全指标不符合要求,存在安全隐患!\n"; + exit(1); +} else { + echo "【测试结论】所有安全防护指标均已满足,安全基线通过!\n"; + exit(0); +}