I am trying to run the functional tests for phpBB. I am on FreeBSD and have php72-mysqli installed. The forum works fine with the current config.php. When I run: `phpBB/vendor/bin/phpunit --group functional` then I get exceptions relating to the dbms. I have no clue on how to solve this.
Code: Select all
260) phpbb_functional_visit_installer_test
RuntimeException: You have specified an invalid dbms driver: in /disk/www/data/integration/phpBB/phpbb/config_php_file.php:158
Stack trace:
#0 /disk/www/data/integration/tests/test_framework/phpbb_test_case_helpers.php(144): phpbb\config_php_file->convert_30_dbms_to_31(NULL)
#1 /disk/www/data/integration/tests/test_framework/phpbb_functional_test_case.php(49): phpbb_test_case_helpers::get_test_config()
#2 /disk/www/data/integration/phpBB/vendor/phpunit/phpunit/src/Framework/TestSuite.php(672): phpbb_functional_test_case::setUpBeforeClass()
#3 /disk/www/data/integration/phpBB/vendor/phpunit/phpunit/src/Framework/TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#4 /disk/www/data/integration/phpBB/vendor/phpunit/phpunit/src/Framework/TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#5 /disk/www/data/integration/phpBB/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(440): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#6 /disk/www/data/integration/phpBB/vendor/phpunit/phpunit/src/TextUI/Command.php(149): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array)
#7 /disk/www/data/integration/phpBB/vendor/phpunit/phpunit/src/TextUI/Command.php(100): PHPUnit_TextUI_Command->run(Array, true)
#8 /disk/www/data/integration/phpBB/vendor/phpunit/phpunit/phpunit(52): PHPUnit_TextUI_Command::main()
#9 {main}
FAILURES!
Tests: 2514, Assertions: 0, Errors: 260.
Code: Select all
<?php
// phpBB 3.2.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'phpbb\\db\\driver\\mysqli';
$dbhost = '';
$dbport = '';
$dbname = 'forum';
$dbuser = 'root';
$dbpasswd = '';
$table_prefix = 'phpbb_';
$phpbb_adm_relative_path = 'adm/';
$acm_type = 'phpbb\\cache\\driver\\file';
@define('PHPBB_INSTALLED', true);
@define('PHPBB_DISPLAY_LOAD_TIME', true);
@define('PHPBB_ENVIRONMENT', 'production');
@define('DEBUG_CONTAINER', true);
@define('DEBUG', true);
Code: Select all
mod_php72-7.2.5 =
php72-7.2.5 =
php72-bz2-7.2.5 =
php72-ctype-7.2.5 =
php72-curl-7.2.5 =
php72-dom-7.2.5 =
php72-extensions-1.0 =
php72-filter-7.2.5 =
php72-gd-7.2.5 =
php72-hash-7.2.5 =
php72-iconv-7.2.5 =
php72-json-7.2.5 =
php72-mbstring-7.2.5 =
php72-mysqli-7.2.5 =
php72-opcache-7.2.5 =
php72-openssl-7.2.5 =
php72-pdo-7.2.5 =
php72-pdo_sqlite-7.2.5 =
php72-phar-7.2.5 =
php72-posix-7.2.5 =
php72-session-7.2.5 =
php72-simplexml-7.2.5 =
php72-sqlite3-7.2.5 =
php72-tokenizer-7.2.5 =
php72-xml-7.2.5 =
php72-xmlreader-7.2.5 =
php72-xmlwriter-7.2.5 =
php72-zip-7.2.5 =
php72-zlib-7.2.5 =
phpMyAdmin-php72-4.8.0.1_1 =
phpbb3-3.2.2 =