Completed
Push — master ( df428d...59132f )
by Divine Niiquaye
02:39
created

SimpleCacheTest::createSimpleCache()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of BiuradPHP opensource projects.
7
 *
8
 * PHP version 7.1 and above required
9
 *
10
 * @author    Divine Niiquaye Ibok <[email protected]>
11
 * @copyright 2019 Biurad Group (https://biurad.com/)
12
 * @license   https://opensource.org/licenses/BSD-3-Clause License
13
 *
14
 * For the full copyright and license information, please view the LICENSE
15
 * file that was distributed with this source code.
16
 */
17
18
namespace Biurad\Cache\Tests;
19
20
use Biurad\Cache\AdapterFactory;
21
use Biurad\Cache\CacheItemPool;
22
use Biurad\Cache\SimpleCache;
23
use Cache\IntegrationTests\SimpleCacheTest as Psr16CacheTest;
24
25
class SimpleCacheTest extends Psr16CacheTest
26
{
27
    public function createSimpleCache()
28
    {
29
        $adapter = AdapterFactory::createHandler('memory://' . __DIR__ . '/caches/psr16');
30
        $cache = new CacheItemPool($adapter);
31
32
        return new SimpleCache($cache);
33
    }
34
}
35