GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( d32462...af31de )
by Hilari
05:14 queued 02:44
created

CacheFactorySpec   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 22
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A it_build_an_array_cache() 0 4 1
A it_can_build_a_redis_cache() 0 4 1
A it_can_chain_caches() 0 4 1
A it_can_decorate_a_cache_with_login() 0 4 1
1
<?php
2
3
namespace spec\Cmp\Cache\Factory;
4
5
use Cmp\Cache\Cache;
6
use PhpSpec\ObjectBehavior;
7
use Redis;
8
9
/**
10
 * Class CacheFactorySpec
11
 *
12
 * @package spec\Cmp\Cache\Factory
13
 * @mixin \Cmp\Cache\Factory\CacheFactory
14
 */
15
class CacheFactorySpec extends ObjectBehavior
16
{
17
    function it_build_an_array_cache()
18
    {
19
        $this->arrayCache()->shouldBeAnInstanceOf('\Cmp\Cache\Backend\ArrayCache');
20
    }
21
22
    function it_can_build_a_redis_cache(Redis $redis)
23
    {
24
        $this->redisCache($redis)->shouldBeAnInstanceOf('\Cmp\Cache\Backend\RedisCache');
25
    }
26
27
    function it_can_chain_caches(Cache $one, Cache $two)
28
    {
29
        $this->chainCache([$one, $two])->shouldBeAnInstanceOf('\Cmp\Cache\Backend\ChainCache');
30
    }
31
32
    function it_can_decorate_a_cache_with_login(Cache $cache)
33
    {
34
        $this->loggerCache($cache)->shouldBeAnInstanceOf('\Cmp\Cache\Decorator\LoggerCache');
35
    }
36
}
37