1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-30 03:30:17 +02:00

[ticket/16223] Ensure memcached tests are only run when available

PHPBB3-16223
This commit is contained in:
Marc Alexander
2019-11-25 21:27:43 +01:00
parent fd7524858c
commit c7d47e34e8
4 changed files with 77 additions and 4 deletions

View File

@@ -109,6 +109,21 @@ Or via environment variables as follows:
$ PHPBB_TEST_REDIS_HOST=localhost PHPBB_TEST_REDIS_PORT=6379 phpunit
Memcached
---------
In order to run tests for the memcached cache driver, at least one of memcached
host or port must be specified in the test configuration. This can be done via
test_config.php as follows:
<?php
$phpbb_memcached_host = 'localhost';
$phpbb_memcached_port = '11211';
Or via environment variables as follows:
$ PHPBB_TEST_MEMCACHED_HOST=localhost PHPBB_TEST_MEMCACHED_PORT=11211 phpunit
Running
=======