Test Setup Failed
Push — master ( 562b48...254002 )
by Gabriel
04:15 queued 14s
created

CacheServiceProviderTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRegister() 0 12 1
1
<?php
2
3
namespace Nip\Cache\Tests;
4
5
use Nip\Cache\CacheManager;
6
use Nip\Cache\CacheServiceProvider;
7
use Nip\Cache\Stores\Repository;
8
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
9
10
/**
11
 * Class FilesystemServiceProviderTest
12
 * @package Nip\Filesystem\Tests
13
 */
14
class CacheServiceProviderTest extends AbstractTest
15
{
16
    public function testRegister()
17
    {
18
        $provider = new CacheServiceProvider();
19
        $provider->initContainer();
20
        $provider->register();
21
22
        $filesystem = $provider->getContainer()->get('cache');
23
        self::assertInstanceOf(CacheManager::class, $filesystem);
24
25
        $store = $provider->getContainer()->get('cache.store');
26
        self::assertInstanceOf(Repository::class, $store);
27
    }
28
}
29