From a64fc008c8c2e0faa48921a96d42d845c9435ff6 Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Tue, 16 Apr 2024 12:39:46 +0200 Subject: [PATCH] tests: add php_history file check (#13967) --- 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 6adbf195e2e..81e5cc5547d 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)