Completed
Push — master ( 530ce9...1b2ae5 )
by Paweł
23:42 queued 20:31
created

LinkRequestListenerSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 4 1
A it_is_initializable() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the Superdesk Web Publisher Content Bundle.
5
 *
6
 * Copyright 2015 Sourcefabric z.u. and contributors.
7
 *
8
 * For the full copyright and license information, please see the
9
 * AUTHORS and LICENSE files distributed with this source code.
10
 *
11
 * @copyright 2015 Sourcefabric z.ú.
12
 * @license http://www.superdesk.org/license
13
 */
14
namespace spec\SWP\Bundle\ContentBundle\EventListener;
15
16
use PhpSpec\ObjectBehavior;
17
18
class LinkRequestListenerSpec extends ObjectBehavior
19
{
20
    /**
21
     * @param \Symfony\Component\HttpKernel\Controller\ControllerResolverInterface $controllerResolver
22
     * @param \Symfony\Component\Routing\Matcher\UrlMatcherInterface               $urlMatcher
23
     */
24
    public function let($controllerResolver, $urlMatcher)
25
    {
26
        $this->beConstructedWith($controllerResolver, $urlMatcher);
27
    }
28
29
    public function it_is_initializable()
30
    {
31
        $this->shouldHaveType('SWP\Bundle\ContentBundle\EventListener\LinkRequestListener');
32
    }
33
}
34