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

StaticLinkResolverTest::testStaticLinkResolution()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
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