Remove superfluous check for PHP 7+ tests

This commit is contained in:
Gabriel Caruso 2018-07-27 00:48:30 -03:00
parent d035bc2bfe
commit 7ec64a831d
No known key found for this signature in database
GPG key ID: D93D6E258EFC438A
3 changed files with 1 additions and 9 deletions

View file

@ -6,12 +6,6 @@ opcache.enable_cli=1
opcache.file_cache=/tmp opcache.file_cache=/tmp
--FILE-- --FILE--
<?php <?php
if (PHP_VERSION_ID >= 70000) {
echo "Done";
return;
}
if (!is_callable('random_bytes')) { if (!is_callable('random_bytes')) {
try { try {
} catch (com_exception $e) { } catch (com_exception $e) {
@ -22,8 +16,8 @@ if (!is_callable('random_bytes')) {
throw new Exception( throw new Exception(
'There is no suitable CSPRNG installed on your system' 'There is no suitable CSPRNG installed on your system'
); );
return '';
} }
} }
echo 'Done';
--EXPECT-- --EXPECT--
Done Done

View file

@ -2,7 +2,6 @@
Testing xpath() with invalid XML Testing xpath() with invalid XML
--SKIPIF-- --SKIPIF--
<?php <?php
if (PHP_MAJOR_VERSION < 7) die("skip this test is for PHP 7+ only");
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only"); if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
?> ?>
--FILE-- --FILE--

View file

@ -3,7 +3,6 @@ Testing xpath() with invalid XML
--SKIPIF-- --SKIPIF--
<?php <?php
if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded');
if (PHP_MAJOR_VERSION < 7) die("skip this test is for PHP 7+ only");
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only"); if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
?> ?>
--FILE-- --FILE--