Skip to content

Commit 4e0dd6b

Browse files
committed
Remove unnecessary CLI checks in tests
1 parent cc60e8b commit 4e0dd6b

23 files changed

+2
-64
lines changed

Zend/tests/bug40236.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Bug #40236 (php -a function allocation eats memory)
33
--SKIPIF--
44
<?php
5-
if (php_sapi_name() != "cli") die("skip CLI only");
65
if (extension_loaded("readline")) die("skip Test doesn't support readline");
76
?>
87
--FILE--

Zend/tests/bug60978.phpt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
--TEST--
22
Bug #60978 (exit code incorrect)
3-
--SKIPIF--
4-
<?php
5-
if ("cli" != php_sapi_name()) {
6-
echo "skip CLI only";
7-
}
8-
?>
93
--FILE--
104
<?php
115
$php = getenv('TEST_PHP_EXECUTABLE');

Zend/tests/bug66218.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Bug #66218 zend_register_functions breaks reflection
33
--SKIPIF--
44
<?php
5-
if (PHP_SAPI != "cli") die("skip CLI only test");
65
if (!function_exists("dl")) die("skip need dl");
76
?>
87
--FILE--

Zend/tests/constant_expressions_classes.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ Constant scalar expressions with autoloading and classes
44
opcache.enable=1
55
opcache.enable_cli=1
66
opcache.optimization_level=-1
7-
--SKIPIF--
8-
<?php if (php_sapi_name() != "cli") die("skip CLI only"); ?>
97
--FILE--
108
<?php
119

ext/opcache/tests/bug66251.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ opcache.enable=1
55
opcache.enable_cli=1
66
opcache.optimization_level=-1
77
--SKIPIF--
8-
<?php if (!extension_loaded('Zend OPcache') || php_sapi_name() != "cli") die("skip CLI only"); ?>
8+
<?php if (!extension_loaded('Zend OPcache')) die("skip Zend OPcache extension not loaded"); ?>
99
--FILE--
1010
<?php
1111
printf ("A=%s\n", getA());

ext/opcache/tests/bug66338.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Bug #66338 (Optimization binding of class constants is not safely opcacheable)
33
--INI--
44
opcache.enable=0
55
--SKIPIF--
6-
<?php if (!extension_loaded('Zend OPcache') || php_sapi_name() != "cli") die("skip CLI only"); ?>
6+
<?php if (!extension_loaded('Zend OPcache')) die("skip Zend OPcache extension not loaded"); ?>
77
--FILE--
88
<?php
99
$root = str_replace('.php', "", __FILE__);

ext/opcache/tests/issue0115.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ phar.readonly=0
77
--SKIPIF--
88
<?php require_once('skipif.inc'); ?>
99
<?php if (!extension_loaded("phar")) die("skip"); ?>
10-
<?php if (php_sapi_name() != "cli") die("skip CLI only"); ?>
1110
--FILE--
1211
<?php
1312
$stub = '<?php

ext/opcache/tests/issue0140.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ opcache.revalidate_freq=0
77
opcache.file_update_protection=0
88
--SKIPIF--
99
<?php require_once('skipif.inc'); ?>
10-
<?php if (php_sapi_name() != "cli") die("skip CLI only"); ?>
1110
<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow tests excluded by request") ?>
1211
--FILE--
1312
<?php

ext/opcache/tests/issue0149.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ phar.readonly=0
77
--SKIPIF--
88
<?php require_once('skipif.inc'); ?>
99
<?php if (!extension_loaded("phar")) die("skip"); ?>
10-
<?php if (php_sapi_name() != "cli") die("skip CLI only"); ?>
1110
--FILE--
1211
<?php
1312
$stub = "<?php header('Content-Type: text/plain;');

ext/opcache/tests/revalidate_path_01.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ opcache.enable_cli=1
66
opcache.revalidate_path=1
77
--SKIPIF--
88
<?php require_once('skipif.inc'); ?>
9-
<?php if (php_sapi_name() != "cli") die("skip CLI only"); ?>
109
--FILE--
1110
<?php
1211
$dir = dirname(__FILE__);

0 commit comments

Comments
 (0)