From 0cbb8e4c22a3db93cd55ef737406c95556158fea Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Sun, 30 May 2021 18:31:11 +0200 Subject: [PATCH] Run testdriver only on CLI --- season_test.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/season_test.php b/season_test.php index 6e8a450..d697530 100644 --- a/season_test.php +++ b/season_test.php @@ -2,6 +2,8 @@ require 'season.php'; +php_sapi_name() == 'cli' || die('Forbidden'); + $jz = new Season(); for ($j = 2000; $j < 2100; $j++) { $jz->calc($j);