]> granicus.if.org Git - php/commitdiff
Not skipping test on Windows and test against CLI instead
authorPatrick Allaert <patrick@catchy.io>
Wed, 16 Aug 2017 07:22:38 +0000 (09:22 +0200)
committerPatrick Allaert <patrick@catchy.io>
Wed, 16 Aug 2017 15:05:47 +0000 (17:05 +0200)
sapi/cli/tests/cli_get_process_title_basic.phpt
sapi/cli/tests/cli_get_process_title_error.phpt
sapi/cli/tests/cli_set_process_title_basic.phpt
sapi/cli/tests/cli_set_process_title_error.phpt

index ad4705afdbf2801d7adec314b67980a8217dfa4e..365d5bcae635226877cc69b9c137440e4426a7a4 100644 (file)
@@ -5,7 +5,7 @@ Patrick Allaert patrickallaert@php.net
 @nephp #nephp17
 --SKIPIF--
 <?php
-if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
+if (PHP_SAPI !== "cli")
   die("skip");
 ?>
 --FILE--
index b24abc07805a099fe84d791e74e4a42f8815af72..7050c577ae7ffc237c5915fb925aa80fab7b7f4e 100644 (file)
@@ -5,7 +5,7 @@ Patrick Allaert patrickallaert@php.net
 @nephp #nephp17
 --SKIPIF--
 <?php
-if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
+if (PHP_SAPI !== "cli")
   die("skip");
 ?>
 --FILE--
index e4f454bd0dd10b3eff9f3d64b460b954f02bc22f..f7bb7fc06184a813bb6be994d3f387ff7a1ae01c 100644 (file)
@@ -5,7 +5,7 @@ Patrick Allaert patrickallaert@php.net
 @nephp #nephp17
 --SKIPIF--
 <?php
-if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
+if (PHP_SAPI !== "cli")
   die("skip");
 ?>
 --FILE--
index 6323f3ea402ea2ea80df697f70acd31bbe0caa39..47d9854b34806d5583f7fa3ebbf131b95358e918 100644 (file)
@@ -5,7 +5,7 @@ Patrick Allaert patrickallaert@php.net
 @nephp #nephp17
 --SKIPIF--
 <?php
-if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
+if (PHP_SAPI !== "cli")
   die("skip");
 ?>
 --FILE--