From 84e4854a107add23f585c30727930d9f2ced7593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 6 Feb 2021 10:50:13 +0200 Subject: [PATCH] Test PDO_MYSQL only for PHP 5.4/5.5 in Travis --- tests/TestConfiguration.travis.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestConfiguration.travis.php b/tests/TestConfiguration.travis.php index 4345a5814..a952fa01a 100644 --- a/tests/TestConfiguration.travis.php +++ b/tests/TestConfiguration.travis.php @@ -54,8 +54,10 @@ * the native Mysqli adapters, but the other properties are shared between the * two MySQL-related Zend_Db adapters. */ -defined('TESTS_ZEND_DB_ADAPTER_PDO_MYSQL_ENABLED') || define('TESTS_ZEND_DB_ADAPTER_PDO_MYSQL_ENABLED', true); -defined('TESTS_ZEND_DB_ADAPTER_MYSQLI_ENABLED') || define('TESTS_ZEND_DB_ADAPTER_MYSQLI_ENABLED', true); +defined('TESTS_ZEND_DB_ADAPTER_PDO_MYSQL_ENABLED') || define('TESTS_ZEND_DB_ADAPTER_PDO_MYSQL_ENABLED', false); +// Testing PDO_MYSQL only for PHP 5.4/5.5, as can't test that on GitHub Actions +// https://github.com/zf1s/zf1/pull/49/files#r565875073 +defined('TESTS_ZEND_DB_ADAPTER_MYSQLI_ENABLED') || define('TESTS_ZEND_DB_ADAPTER_MYSQLI_ENABLED', (PHP_VERSION_ID >= 50400 && PHP_VERSION_ID < 50600)); defined('TESTS_ZEND_DB_ADAPTER_MYSQL_USERNAME') || define('TESTS_ZEND_DB_ADAPTER_MYSQL_USERNAME', 'travis'); defined('TESTS_ZEND_DB_ADAPTER_MYSQL_PASSWORD') || define('TESTS_ZEND_DB_ADAPTER_MYSQL_PASSWORD', ''); defined('TESTS_ZEND_DB_ADAPTER_MYSQL_DATABASE') || define('TESTS_ZEND_DB_ADAPTER_MYSQL_DATABASE', 'zftest');