summaryrefslogtreecommitdiff
path: root/sapi/cli
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-12-04 17:48:52 +0000
committerAntony Dovgal <tony2001@php.net>2006-12-04 17:48:52 +0000
commit459564e2d248307c0eb53b88f182aff18a274e9b (patch)
tree4812aa3ad8e25898e12baefa244ee16cb16fd4f2 /sapi/cli
parentf7bc5165025959d91cd1dd686c8190464c61169d (diff)
downloadphp-git-459564e2d248307c0eb53b88f182aff18a274e9b.tar.gz
fix tests
Diffstat (limited to 'sapi/cli')
-rw-r--r--sapi/cli/tests/002-win32.phpt2
-rw-r--r--sapi/cli/tests/002.phpt2
-rw-r--r--sapi/cli/tests/004.phpt6
-rw-r--r--sapi/cli/tests/005.phpt6
-rw-r--r--sapi/cli/tests/006.phpt4
-rw-r--r--sapi/cli/tests/007.phpt6
-rw-r--r--sapi/cli/tests/008.phpt4
-rw-r--r--sapi/cli/tests/009.phpt4
-rw-r--r--sapi/cli/tests/010-2.phpt2
-rw-r--r--sapi/cli/tests/010.phpt2
-rw-r--r--sapi/cli/tests/011.phpt6
-rw-r--r--sapi/cli/tests/012.phpt16
-rw-r--r--sapi/cli/tests/013.phpt6
13 files changed, 33 insertions, 33 deletions
diff --git a/sapi/cli/tests/002-win32.phpt b/sapi/cli/tests/002-win32.phpt
index 36d60adbf2..ca0e66ddcd 100644
--- a/sapi/cli/tests/002-win32.phpt
+++ b/sapi/cli/tests/002-win32.phpt
@@ -12,7 +12,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
$php = $_ENV['TEST_PHP_EXECUTABLE'];
-var_dump(`$php -r "var_dump('hello');"`);
+var_dump(`$php -n -r "var_dump('hello');"`);
echo "Done\n";
?>
diff --git a/sapi/cli/tests/002.phpt b/sapi/cli/tests/002.phpt
index 04c81d2fb7..4217cab13a 100644
--- a/sapi/cli/tests/002.phpt
+++ b/sapi/cli/tests/002.phpt
@@ -12,7 +12,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
$php = $_ENV['TEST_PHP_EXECUTABLE'];
-var_dump(`$php -r 'var_dump("hello");'`);
+var_dump(`$php -n -r 'var_dump("hello");'`);
echo "Done\n";
?>
diff --git a/sapi/cli/tests/004.phpt b/sapi/cli/tests/004.phpt
index 1a40e2cb1c..69eacc6a43 100644
--- a/sapi/cli/tests/004.phpt
+++ b/sapi/cli/tests/004.phpt
@@ -7,9 +7,9 @@ show information about function
$php = $_ENV['TEST_PHP_EXECUTABLE'];
-var_dump(`$php --rf unknown`);
-var_dump(`$php --rf echo`);
-var_dump(`$php --rf phpinfo`);
+var_dump(`$php -n --rf unknown`);
+var_dump(`$php -n --rf echo`);
+var_dump(`$php -n --rf phpinfo`);
echo "Done\n";
?>
diff --git a/sapi/cli/tests/005.phpt b/sapi/cli/tests/005.phpt
index bfc29516f7..018304f3c6 100644
--- a/sapi/cli/tests/005.phpt
+++ b/sapi/cli/tests/005.phpt
@@ -7,9 +7,9 @@ show information about class
$php = $_ENV['TEST_PHP_EXECUTABLE'];
-var_dump(`$php --rc unknown`);
-var_dump(`$php --rc stdclass`);
-var_dump(`$php --rc exception`);
+var_dump(`$php -n --rc unknown`);
+var_dump(`$php -n --rc stdclass`);
+var_dump(`$php -n --rc exception`);
echo "Done\n";
?>
diff --git a/sapi/cli/tests/006.phpt b/sapi/cli/tests/006.phpt
index 6e830183c6..71c08a53ce 100644
--- a/sapi/cli/tests/006.phpt
+++ b/sapi/cli/tests/006.phpt
@@ -7,8 +7,8 @@ show information about extension
$php = $_ENV['TEST_PHP_EXECUTABLE'];
-var_dump(`$php --re unknown`);
-var_dump(`$php --re ""`);
+var_dump(`$php -n --re unknown`);
+var_dump(`$php -n --re ""`);
var_dump(`$php -n --re date`);
echo "Done\n";
diff --git a/sapi/cli/tests/007.phpt b/sapi/cli/tests/007.phpt
index 2725907825..44d9e78dbb 100644
--- a/sapi/cli/tests/007.phpt
+++ b/sapi/cli/tests/007.phpt
@@ -32,9 +32,9 @@ class test { /* {{{ */
file_put_contents($filename, $code);
-var_dump(`$php -w "$filename"`);
-var_dump(`$php -w "wrong"`);
-var_dump(`echo "<?php /* comment */ class test {\n // comment \n function foo() {} } ?>" | $php -w`);
+var_dump(`$php -n -w "$filename"`);
+var_dump(`$php -n -w "wrong"`);
+var_dump(`echo "<?php /* comment */ class test {\n // comment \n function foo() {} } ?>" | $php -n -w`);
@unlink($filename);
diff --git a/sapi/cli/tests/008.phpt b/sapi/cli/tests/008.phpt
index 5bbc26acc2..e897b7b8de 100644
--- a/sapi/cli/tests/008.phpt
+++ b/sapi/cli/tests/008.phpt
@@ -26,8 +26,8 @@ var_dump(test::$pri);
file_put_contents($filename, $code);
-var_dump(`$php -f "$filename"`);
-var_dump(`$php -f "wrong"`);
+var_dump(`$php -n -f "$filename"`);
+var_dump(`$php -n -f "wrong"`);
@unlink($filename);
diff --git a/sapi/cli/tests/009.phpt b/sapi/cli/tests/009.phpt
index cc910fe1e3..7ff8b7a4fb 100644
--- a/sapi/cli/tests/009.phpt
+++ b/sapi/cli/tests/009.phpt
@@ -8,8 +8,8 @@ using invalid combinations of cmdline options
$php = $_ENV['TEST_PHP_EXECUTABLE'];
var_dump(`$php -n -c -r 'echo hello;'`);
-var_dump(`$php -a -r 'echo hello;'`);
-var_dump(`$php -r 'echo hello;' -a`);
+var_dump(`$php -n -a -r 'echo hello;'`);
+var_dump(`$php -n -r 'echo hello;' -a`);
echo "Done\n";
?>
diff --git a/sapi/cli/tests/010-2.phpt b/sapi/cli/tests/010-2.phpt
index 60865df712..54f09342fe 100644
--- a/sapi/cli/tests/010-2.phpt
+++ b/sapi/cli/tests/010-2.phpt
@@ -21,7 +21,7 @@ hello
file_put_contents($filename_txt, $txt);
-var_dump(`cat "$filename_txt" | "$php" -R "var_dump(1);"`);
+var_dump(`cat "$filename_txt" | "$php" -n -R "var_dump(1);"`);
@unlink($filename_txt);
diff --git a/sapi/cli/tests/010.phpt b/sapi/cli/tests/010.phpt
index 5bbcb6ba54..7089632639 100644
--- a/sapi/cli/tests/010.phpt
+++ b/sapi/cli/tests/010.phpt
@@ -30,7 +30,7 @@ hello
file_put_contents($filename_txt, $txt);
-var_dump(`cat "$filename_txt" | "$php" -F "$filename"`);
+var_dump(`cat "$filename_txt" | "$php" -n -F "$filename"`);
@unlink($filename);
@unlink($filename_txt);
diff --git a/sapi/cli/tests/011.phpt b/sapi/cli/tests/011.phpt
index 774024c46c..384d89c123 100644
--- a/sapi/cli/tests/011.phpt
+++ b/sapi/cli/tests/011.phpt
@@ -25,8 +25,8 @@ echo test::$var;
file_put_contents($filename, $code);
-var_dump(`"$php" -l "$filename"`);
-var_dump(`"$php" -l some.unknown`);
+var_dump(`"$php" -n -l "$filename"`);
+var_dump(`"$php" -n -l some.unknown`);
$code = '
<?php
@@ -40,7 +40,7 @@ class test
file_put_contents($filename, $code);
-var_dump(`"$php" -l "$filename"`);
+var_dump(`"$php" -n -l "$filename"`);
@unlink($filename);
diff --git a/sapi/cli/tests/012.phpt b/sapi/cli/tests/012.phpt
index ad66fde634..3102c0957a 100644
--- a/sapi/cli/tests/012.phpt
+++ b/sapi/cli/tests/012.phpt
@@ -7,14 +7,14 @@ invalid arguments and error messages
$php = $_ENV['TEST_PHP_EXECUTABLE'];
-var_dump(`"$php" -F some.php -F some.php`);
-var_dump(`"$php" -F some.php -R some.php`);
-var_dump(`"$php" -R some.php -F some.php`);
-var_dump(`"$php" -R some.php -R some.php`);
-var_dump(`"$php" -f some.php -f some.php`);
-var_dump(`"$php" -B '' -B ''`);
-var_dump(`"$php" -E '' -E ''`);
-var_dump(`"$php" -r "" -r ""`);
+var_dump(`"$php" -n -F some.php -F some.php`);
+var_dump(`"$php" -n -F some.php -R some.php`);
+var_dump(`"$php" -n -R some.php -F some.php`);
+var_dump(`"$php" -n -R some.php -R some.php`);
+var_dump(`"$php" -n -f some.php -f some.php`);
+var_dump(`"$php" -n -B '' -B ''`);
+var_dump(`"$php" -n -E '' -E ''`);
+var_dump(`"$php" -n -r "" -r ""`);
echo "Done\n";
?>
diff --git a/sapi/cli/tests/013.phpt b/sapi/cli/tests/013.phpt
index 6b2b39056d..dfd332b23a 100644
--- a/sapi/cli/tests/013.phpt
+++ b/sapi/cli/tests/013.phpt
@@ -15,9 +15,9 @@ $php = $_ENV['TEST_PHP_EXECUTABLE'];
$filename_txt = dirname(__FILE__)."/013.test.txt";
file_put_contents($filename_txt, "test\nfile\ncontents\n");
-var_dump(`cat "$filename_txt" | "$php" -B 'var_dump("start");'`);
-var_dump(`cat "$filename_txt" | "$php" -E 'var_dump("end");'`);
-var_dump(`cat "$filename_txt" | "$php" -B 'var_dump("start");' -E 'var_dump("end");'`);
+var_dump(`cat "$filename_txt" | "$php" -n -B 'var_dump("start");'`);
+var_dump(`cat "$filename_txt" | "$php" -n -E 'var_dump("end");'`);
+var_dump(`cat "$filename_txt" | "$php" -n -B 'var_dump("start");' -E 'var_dump("end");'`);
@unlink($filename_txt);