Skip to content

Commit a039b7a

Browse files
committed
Use getenv over $_ENV
1 parent 5e750a8 commit a039b7a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/atlas.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Atlas Connectivity Tests
44
<?php
55
if (!file_exists('.evergreen/atlas-uris.txt')) { echo "skip Atlas URIs not found\n"; }
66
if (filesize('.evergreen/atlas-uris.txt') < 10) { echo "skip Atlas URI file empty\n"; }
7-
if ($_ENV['TESTS'] !== 'tests/atlas.phpt') { echo "skip Atlas tests not wanted\n"; }
7+
if (getenv('TESTS') !== 'tests/atlas.phpt') { echo "skip Atlas tests not wanted\n"; }
88
?>
99
--FILE--
1010
<?php

tests/ocsp-failure.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Connection with OCSP checks fails
33
--SKIPIF--
44
<?php
5-
if ($_ENV['TESTS'] !== 'tests/ocsp-failure.phpt') { echo "skip OCSP tests not wanted\n"; }
5+
if (getenv('TESTS') !== 'tests/ocsp-failure.phpt') { echo "skip OCSP tests not wanted\n"; }
66
?>
77
--FILE--
88
<?php

tests/ocsp-success.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Connection with OCSP checks successful
33
--SKIPIF--
44
<?php
5-
if ($_ENV['TESTS'] !== 'tests/ocsp-success.phpt') { echo "skip OCSP tests not wanted\n"; }
5+
if (getenv('TESTS') !== 'tests/ocsp-success.phpt') { echo "skip OCSP tests not wanted\n"; }
66
?>
77
--FILE--
88
<?php

0 commit comments

Comments
 (0)