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
Pull Request — master (#2)
by Hilari
02:47
created

BackendOperationFailedExceptionSpec   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
1
<?php
2
3
namespace spec\Cmp\Cache\Exceptions;
4
5
use Cmp\Cache\Cache;
6
use PhpSpec\ObjectBehavior;
7
8
/**
9
 * Class BackendOperationFailedExceptionSpec
10
 *
11
 * @package spec\Cmp\Cache\Exception
12
 * @mixin \Cmp\Cache\Exceptions\BackendOperationFailedException
13
 */
14
class BackendOperationFailedExceptionSpec extends ObjectBehavior
15
{
16
    function let(Cache $cache)
17
    {
18
        $this->beConstructedWith($cache, 'operation');
19
    }
20
21
    function it_can_return_the_cache_that_failed(Cache $cache)
22
    {
23
        $this->getCache()->shouldReturn($cache);
24
    }
25
26
    function it_can_return_the_operation_that_failed()
27
    {
28
        $this->getOperation()->shouldReturn('operation');
29
    }
30
}
31