From 0c37c1b496cf856a1160b0b0ceac0bbe95079466 Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Mon, 15 Apr 2024 14:14:29 +0200 Subject: [PATCH] tests: add php_history file check --- sapi/cli/tests/017.phpt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sapi/cli/tests/017.phpt b/sapi/cli/tests/017.phpt index 6adbf195e2ee6..81e5cc5547d5a 100644 --- a/sapi/cli/tests/017.phpt +++ b/sapi/cli/tests/017.phpt @@ -61,6 +61,8 @@ foreach ($codes as $key => $code) { } echo "\nDone\n"; +$dir = PHP_OS_FAMILY == 'Windows' ? getenv("USERPROFILE") : getenv("HOME"); +var_dump(file_exists($dir . '/.php_history')); ?> --EXPECT-- -------------- @@ -105,3 +107,4 @@ Interactive shell Parse error: Unmatched ')' in php shell code on line 1 Done +bool(true)