Fixed tests

This commit is contained in:
Dmitry Stogov 2007-04-19 07:00:41 +00:00
parent 73cc55a070
commit 52a9667c3a
5 changed files with 14 additions and 9 deletions

View File

@ -7,9 +7,9 @@ using invalid combinations of cmdline options
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`$php -n -c -r 'echo hello;'`);
var_dump(`$php -n -a -r 'echo hello;'`);
var_dump(`$php -n -r 'echo hello;' -a`);
var_dump(`$php -n -c -r "echo hello;"`);
var_dump(`$php -n -a -r "echo hello;"`);
var_dump(`$php -n -r "echo hello;" -a`);
echo "Done\n";
?>

View File

@ -25,7 +25,7 @@ echo test::$var;
file_put_contents($filename, $code);
var_dump(`"$php" -n -l "$filename"`);
var_dump(`"$php" -n -l $filename`);
var_dump(`"$php" -n -l some.unknown`);
$code = '
@ -40,7 +40,7 @@ class test
file_put_contents($filename, $code);
var_dump(`"$php" -n -l "$filename"`);
var_dump(`"$php" -n -l $filename`);
@unlink($filename);

View File

@ -14,7 +14,7 @@ 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 ""`);
var_dump(`"$php" -n -r '' -r ''`);
echo "Done\n";
?>

View File

@ -27,8 +27,8 @@ $o = new test;
file_put_contents($filename, $code);
var_dump(`"$php" -n -s "$filename"`);
var_dump(`"$php" -n -s "unknown"`);
var_dump(`"$php" -n -s $filename`);
var_dump(`"$php" -n -s unknown`);
@unlink($filename);

View File

@ -1,7 +1,12 @@
--TEST--
CLI long options
--SKIPIF--
<?php include "skipif.inc"; ?>
<?php
include "skipif.inc";
if (substr(PHP_OS, 0, 3) == 'WIN') {
die ("skip not for Windows");
}
?>
--FILE--
<?php