]> granicus.if.org Git - php/commitdiff
fix test with readline on mac
authorFerenc Kovacs <tyrael@php.net>
Sat, 29 Nov 2014 00:47:45 +0000 (01:47 +0100)
committerFerenc Kovacs <tyrael@php.net>
Sat, 29 Nov 2014 00:47:45 +0000 (01:47 +0100)
sapi/cli/tests/bug64529.phpt

index d3755724e8a514ead7ba0d27307f557afb54fd14..8452953bafba8b4add180033a7ee40c64c5459dc 100644 (file)
@@ -21,7 +21,7 @@ if (extension_loaded("readline")) {
 
 set php_executable [lindex \$argv 0]
 
-spawn \$php_executable -n -a
+spawn \$php_executable -n -d cli.prompt="" -a
 
 expect "php >"
 
@@ -39,7 +39,7 @@ SCRIPT;
 
 set php_executable [lindex \$argv 0]
 
-spawn \$php_executable -n -a
+spawn \$php_executable -n -d cli.prompt="" -a
 
 expect "Interactive mode enabled"
 
@@ -60,8 +60,8 @@ system($expect_executable . " " . $script . " " . $php_executable);
 @unlink($script);
 ?>
 --EXPECTF--
-spawn %sphp -n -a
+spawn %sphp -n -d cli.prompt="" -a
 Interactive %s
 
-%secho 'hello world';
-%sello worl%s
+%Secho 'hello world';
+%Shello world