diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-01-02 20:34:45 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-09 21:58:29 +0200 |
commit | 978d883abb4f62f1b644bdab760fedbabdb61690 (patch) | |
tree | 0c1e4b29ce2255e4bbbc71e19c9024354f0c6657 /tests | |
parent | d0e3c2c1369f9d32e778316fb9a4df68b7442ec1 (diff) | |
download | forums-978d883abb4f62f1b644bdab760fedbabdb61690.tar forums-978d883abb4f62f1b644bdab760fedbabdb61690.tar.gz forums-978d883abb4f62f1b644bdab760fedbabdb61690.tar.bz2 forums-978d883abb4f62f1b644bdab760fedbabdb61690.tar.xz forums-978d883abb4f62f1b644bdab760fedbabdb61690.zip |
[ticket/14948] Remove checks for unsupported PHP versions
PHPBB3-14948
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bootstrap.php | 2 | ||||
-rw-r--r-- | tests/lint_test.php | 5 | ||||
-rw-r--r-- | tests/test_framework/phpbb_ui_test_case.php | 9 |
3 files changed, 3 insertions, 13 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 18977bac88..62f91e346e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -42,7 +42,7 @@ require_once 'test_framework/phpbb_database_test_connection_manager.php'; require_once 'test_framework/phpbb_functional_test_case.php'; require_once 'test_framework/phpbb_ui_test_case.php'; -if (version_compare(PHP_VERSION, '5.3.19', ">=") && file_exists(__DIR__ . '/vendor/autoload.php')) +if (file_exists(__DIR__ . '/vendor/autoload.php')) { require_once __DIR__ . '/vendor/autoload.php'; } diff --git a/tests/lint_test.php b/tests/lint_test.php index 8ab31f976c..8356389acf 100644 --- a/tests/lint_test.php +++ b/tests/lint_test.php @@ -45,11 +45,6 @@ class phpbb_lint_test extends phpbb_test_case */ public function test_lint($path) { - if (version_compare(PHP_VERSION, '5.3.0', '<')) - { - $this->markTestSkipped('phpBB uses PHP 5.3 syntax in some files, linting on PHP < 5.3 will fail'); - } - $cmd = sprintf('(%s -l %s) 2>&1', self::$php_binary, escapeshellarg($path)); $output = array(); $status = 1; diff --git a/tests/test_framework/phpbb_ui_test_case.php b/tests/test_framework/phpbb_ui_test_case.php index 2d249f5c73..914de2e02a 100644 --- a/tests/test_framework/phpbb_ui_test_case.php +++ b/tests/test_framework/phpbb_ui_test_case.php @@ -52,15 +52,10 @@ class phpbb_ui_test_case extends phpbb_test_case { parent::setUpBeforeClass(); - if (version_compare(PHP_VERSION, '5.3.19', '<')) - { - self::markTestSkipped('UI test case requires at least PHP 5.3.19.'); - } - else if (!class_exists('\Facebook\WebDriver\Remote\RemoteWebDriver')) + if (!class_exists('\Facebook\WebDriver\Remote\RemoteWebDriver')) { self::markTestSkipped( - 'Could not find RemoteWebDriver class. ' . - 'Run "php ../composer.phar install" from the tests folder.' + 'Could not find RemoteWebDriver class.' ); } |