Completed
Push — master ( f88f6e...5d85cb )
by Pavel
03:14
created

StaticLinkResolverTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testStaticLinkResolution() 0 11 1
1
<?php
2
3
namespace Bankiru\Seo\Tests\Unit\Resolver;
4
5
use Bankiru\Seo\CompiledLink;
6
use Bankiru\Seo\Resolver\StaticLinkResolver;
7
8
class StaticLinkResolverTest extends \PHPUnit_Framework_TestCase
9
{
10
    public function testStaticLinkResolution()
11
    {
12
        $resolver = new StaticLinkResolver();
13
14
        $link  = new CompiledLink('/test/', 'Title');
15
        $links = $resolver->resolve($link);
16
17
        self::assertInternalType('array', $links);
18
        self::assertContains($link, $links);
19
        self::assertCount(1, $links);
20
    }
21
}
22