mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fixed tests
This commit is contained in:
parent
73cc55a070
commit
52a9667c3a
@ -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";
|
||||
?>
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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";
|
||||
?>
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user