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 ( 2f12c3...e53ef5 )
by Hilari
02:46
created

CacheFactorySpec   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 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_decorate_a_cache_for_testing() 0 4 1
1
<?php
2
3
namespace spec\Cmp\Cache\Application;
4
5
use Cmp\Cache\Domain\Cache;
6
use PhpSpec\ObjectBehavior;
7
use Redis;
8
9
/**
10
 * Class CacheFactorySpec
11
 *
12
 * @package spec\Cmp\Cache\Application
13
 * @mixin \Cmp\Cache\Application\CacheFactory
14
 */
15
class CacheFactorySpec extends ObjectBehavior
16
{
17
    function it_build_an_array_cache()
18
    {
19
        $this::arrayCache()->shouldBeAnInstanceOf('\Cmp\Cache\Infrastructure\ArrayCache');
20
    }
21
22
    function it_can_build_a_redis_cache(Redis $redis)
23
    {
24
        $this::redisCache($redis)->shouldBeAnInstanceOf('\Cmp\Cache\Infrastructure\RedisCache');
25
    }
26
27
    function it_can_decorate_a_cache_for_testing(Cache $cache)
28
    {
29
        $this::decorateForTesting($cache)->shouldBeAnInstanceOf('\Cmp\Cache\Application\TestCacheDecorator');
30
    }
31
}
32