mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-09-19 18:05:13 +00:00
20862be7d0
- slim/slim: ^3.1 - symfony/expression-language: ^3.4 - fxp/composer-asset-plugin: ~1.3 - bower-asset/vue: ^2.5 - bower-asset/vue-resource: ^1.5
55 lines
1.9 KiB
PHP
55 lines
1.9 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\Component\Cache\Tests\Simple;
|
|
|
|
use Symfony\Component\Cache\Simple\FilesystemCache;
|
|
use Symfony\Component\Cache\Simple\PhpArrayCache;
|
|
use Symfony\Component\Cache\Tests\Adapter\FilesystemAdapterTest;
|
|
|
|
/**
|
|
* @group time-sensitive
|
|
*/
|
|
class PhpArrayCacheWithFallbackTest extends CacheTestCase
|
|
{
|
|
protected $skippedTests = array(
|
|
'testGetInvalidKeys' => 'PhpArrayCache does no validation',
|
|
'testGetMultipleInvalidKeys' => 'PhpArrayCache does no validation',
|
|
'testDeleteInvalidKeys' => 'PhpArrayCache does no validation',
|
|
'testDeleteMultipleInvalidKeys' => 'PhpArrayCache does no validation',
|
|
//'testSetValidData' => 'PhpArrayCache does no validation',
|
|
'testSetInvalidKeys' => 'PhpArrayCache does no validation',
|
|
'testSetInvalidTtl' => 'PhpArrayCache does no validation',
|
|
'testSetMultipleInvalidKeys' => 'PhpArrayCache does no validation',
|
|
'testSetMultipleInvalidTtl' => 'PhpArrayCache does no validation',
|
|
'testHasInvalidKeys' => 'PhpArrayCache does no validation',
|
|
'testPrune' => 'PhpArrayCache just proxies',
|
|
);
|
|
|
|
protected static $file;
|
|
|
|
public static function setupBeforeClass()
|
|
{
|
|
self::$file = sys_get_temp_dir().'/symfony-cache/php-array-adapter-test.php';
|
|
}
|
|
|
|
protected function tearDown()
|
|
{
|
|
if (file_exists(sys_get_temp_dir().'/symfony-cache')) {
|
|
FilesystemAdapterTest::rmdir(sys_get_temp_dir().'/symfony-cache');
|
|
}
|
|
}
|
|
|
|
public function createSimpleCache($defaultLifetime = 0)
|
|
{
|
|
return new PhpArrayCache(self::$file, new FilesystemCache('php-array-fallback', $defaultLifetime));
|
|
}
|
|
}
|