summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-08-18 17:38:16 +0200
committerAnatol Belski <ab@php.net>2017-08-18 17:38:16 +0200
commitf1c664d37960be8a53efae67f99193a1c3be22b0 (patch)
tree9a2ee2f9ca3d701898d716b27a5e7f4cff6fc877 /tests
parent59558ffd961c5002be5cf99245c6c76be569cf1e (diff)
downloadphp-git-f1c664d37960be8a53efae67f99193a1c3be22b0.tar.gz
Fix skipifs
Diffstat (limited to 'tests')
-rw-r--r--tests/run-test/bug75042-2.phpt7
-rw-r--r--tests/run-test/bug75042.phpt7
2 files changed, 4 insertions, 10 deletions
diff --git a/tests/run-test/bug75042-2.phpt b/tests/run-test/bug75042-2.phpt
index c79eb4495f..25f6d08e61 100644
--- a/tests/run-test/bug75042-2.phpt
+++ b/tests/run-test/bug75042-2.phpt
@@ -2,10 +2,7 @@
phpt EXTENSIONS directive with static module
--SKIPIF--
<?php
-if(empty($_ENV['TEST_PHP_EXECUTABLE'])) {
- die('skip TEST_PHP_EXECUTABLE not set');
-}
-$php = $_ENV['TEST_PHP_EXECUTABLE'];
+$php = getenv('TEST_PHP_EXECUTABLE');
if (false === stripos(`$php -n -m`, 'spl')) {
die('skip spl is NOT built static');
}
@@ -15,4 +12,4 @@ SPL
<?php
var_dump(extension_loaded('spl'));
--EXPECT--
-bool(true) \ No newline at end of file
+bool(true)
diff --git a/tests/run-test/bug75042.phpt b/tests/run-test/bug75042.phpt
index 10a0f45040..001e8f3e7d 100644
--- a/tests/run-test/bug75042.phpt
+++ b/tests/run-test/bug75042.phpt
@@ -2,10 +2,7 @@
phpt EXTENSIONS directive with shared module
--SKIPIF--
<?php
-if(empty($_ENV['TEST_PHP_EXECUTABLE'])) {
- die('skip TEST_PHP_EXECUTABLE not set');
-}
-$php = $_ENV['TEST_PHP_EXECUTABLE'];
+$php = getenv('TEST_PHP_EXECUTABLE');
if (false !== stripos(`$php -n -m`, 'openssl')) {
die('skip openssl is built static');
}
@@ -17,4 +14,4 @@ openssl
<?php
var_dump(extension_loaded('openssl'));
--EXPECT--
-bool(true) \ No newline at end of file
+bool(true)