Skip to content
Snippets Groups Projects
Commit 47aed03f authored by Alberto Paderno's avatar Alberto Paderno
Browse files

Issue #3464533: Improve the tests

parent 487ba49f
No related branches found
No related tags found
1 merge request!53Issue #3464533: Improve the tests
Pipeline #244909 passed
......@@ -28,5 +28,6 @@ include:
# OPT_IN_TEST_NEXT_MAJOR: '1'
# _CURL_TEMPLATES_REF: 'main'
variables:
# Temporary disable PHPUnit tests.
SKIP_PHPUNIT: '1'
_PHPUNIT_CONCURRENT: 1
_CONCURRENCY_THREADS: 2
SKIP_PHPUNIT: 1
......@@ -7,7 +7,6 @@
// phpcs:disable SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed
/**
* Deletes APCu keys based on the provided patterns.
*
......@@ -15,8 +14,8 @@
* delete then later, in the case the APCu extension is not available.
*
* @param array $patterns
* An associative array of patterns and their corresponding old patterns. Old
* patterns are replaced by the new patterns, in the persistent variable.
* An associative array of patterns and their corresponding old patterns. Old
* patterns are replaced by the new patterns, in the persistent variable.
*/
function _apc_delete_apcu_keys($patterns) {
$apcu_enabled = extension_loaded('apcu') && apcu_enabled();
......
This diff is collapsed.
......@@ -343,7 +343,7 @@ public function set($cid, $data, $expire = CACHE_PERMANENT) {
// For apcu_store(), using 0 as TTL means the stored data will never
// expire. The minimum lifetime is one second.
$cache_lifetime = variable_get('cache_lifetime', 0);
$ttl = $cache_lifetime > 0 ? $cache_lifetime : 1;
$ttl = max(1, $cache_lifetime);
break;
default:
......
......@@ -36,6 +36,6 @@ function apc_write_apcu_test_uninstall() {
apcu_delete('apc_cache');
apcu_delete('apc_cache::');
apcu_delete('apc_store::apc_cache');
apcu_delete('apc_write_apcu_test::count');
apcu_delete('apc_write_apcu_test::keys');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment