Completed
Pull Request — master (#1)
by Albin
01:57
created

StaticUrlResolverSpec   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 4 1
A it_is_initializable() 0 4 1
A it_is_a_resolver() 0 4 1
A it_resolves_url_by_prepending_static_prefix_to_path() 0 4 1
1
<?php
2
3
namespace spec\Gaufrette\Extras\Resolvable\Resolver;
4
5
use Gaufrette\Extras\Resolvable\Resolver\StaticUrlResolver;
6
use Gaufrette\Extras\Resolvable\ResolverInterface;
7
use PhpSpec\ObjectBehavior;
8
use Prophecy\Argument;
9
10
class StaticUrlResolverSpec extends ObjectBehavior
11
{
12
    function let()
13
    {
14
        $this->beConstructedWith('https://google.com/');
15
    }
16
17
    function it_is_initializable()
18
    {
19
        $this->shouldHaveType(StaticUrlResolver::class);
20
    }
21
22
    function it_is_a_resolver()
23
    {
24
        $this->shouldImplement(ResolverInterface::class);
25
    }
26
27
    function it_resolves_url_by_prepending_static_prefix_to_path()
28
    {
29
        $this->resolve('/foo.png')->shouldReturn('https://google.com/foo.png');
30
    }
31
}
32