StaticUrlResolverSpec::it_is_a_resolver()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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
9
class StaticUrlResolverSpec extends ObjectBehavior
10
{
11
    function let()
12
    {
13
        $this->beConstructedWith('https://google.com/');
14
    }
15
16
    function it_is_initializable()
17
    {
18
        $this->shouldHaveType(StaticUrlResolver::class);
19
    }
20
21
    function it_is_a_resolver()
22
    {
23
        $this->shouldImplement(ResolverInterface::class);
24
    }
25
26
    function it_resolves_url_by_prepending_static_prefix_to_path()
27
    {
28
        $this->resolve('/foo.png')->shouldReturn('https://google.com/foo.png');
29
    }
30
}
31