summaryrefslogtreecommitdiff
path: root/sapi/cli
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-07-26 21:12:21 -0300
committerGabriel Caruso <carusogabriel34@gmail.com>2018-08-28 21:20:00 -0300
commit2f7003847d3b48ea89fdec2bd5388085cf6b4d0e (patch)
treeeff844d0c3e0794916228369104fa3305a1cc0f7 /sapi/cli
parent3748d8070ffd7750c73c327e212d6dc4fc76d427 (diff)
downloadphp-git-2f7003847d3b48ea89fdec2bd5388085cf6b4d0e.tar.gz
Make more tests run on Linux
Diffstat (limited to 'sapi/cli')
-rw-r--r--sapi/cli/tests/002-unix.phpt (renamed from sapi/cli/tests/002-win32.phpt)6
-rw-r--r--sapi/cli/tests/002.phpt9
-rw-r--r--sapi/cli/tests/argv_mb.phpt7
3 files changed, 8 insertions, 14 deletions
diff --git a/sapi/cli/tests/002-win32.phpt b/sapi/cli/tests/002-unix.phpt
index 6176625c5b..c67b93eba2 100644
--- a/sapi/cli/tests/002-win32.phpt
+++ b/sapi/cli/tests/002-unix.phpt
@@ -3,8 +3,8 @@ running code with -r
--SKIPIF--
<?php
include "skipif.inc";
-if (substr(PHP_OS, 0, 3) != 'WIN') {
- die ("skip only for Windows");
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+ die ("skip not for Windows");
}
?>
--FILE--
@@ -12,7 +12,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
$php = getenv('TEST_PHP_EXECUTABLE');
-var_dump(`$php -n -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 c67b93eba2..496715376e 100644
--- a/sapi/cli/tests/002.phpt
+++ b/sapi/cli/tests/002.phpt
@@ -1,18 +1,15 @@
--TEST--
running code with -r
--SKIPIF--
-<?php
-include "skipif.inc";
-if (substr(PHP_OS, 0, 3) == 'WIN') {
- die ("skip not for Windows");
-}
+<?php
+include "skipif.inc";
?>
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
-var_dump(`$php -n -r 'var_dump("hello");'`);
+var_dump(`$php -n -r "var_dump('hello');"`);
echo "Done\n";
?>
diff --git a/sapi/cli/tests/argv_mb.phpt b/sapi/cli/tests/argv_mb.phpt
index e8c47f0972..2a9d7a132a 100644
--- a/sapi/cli/tests/argv_mb.phpt
+++ b/sapi/cli/tests/argv_mb.phpt
@@ -1,11 +1,8 @@
--TEST--
Test basic argv multibyte API integration
--SKIPIF--
-<?php
-include "skipif.inc";
-if (substr(PHP_OS, 0, 3) != 'WIN') {
- die ("skip only for Windows");
-}
+<?php
+include "skipif.inc";
?>
--FILE--
<?php