[php-src] master: tests: add php_history file check (#13967)
| From: | Laurent Arnoud via GitHub | Date: | Tue, 16 Apr 2024 10:39:52 +0000 |
| Subject: | [php-src] master: tests: add php_history file check (#13967) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-128130@lists.php.net to get a copy of this message | ||
Author: Laurent Arnoud (spk)
Committer: GitHub (web-flow)
Pusher: iluuu1994
Date: 2024-04-16T12:39:46+02:00
Commit: https://github.com/php/php-src/commit/a64fc008c8c2e0faa48921a96d42d845c9435ff6
Raw diff: https://github.com/php/php-src/commit/a64fc008c8c2e0faa48921a96d42d845c9435ff6.diff
tests: add php_history file check (#13967)
Changed paths:
M sapi/cli/tests/017.phpt
Diff:
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)