Completed
Push — master ( 6f4e11...e12aed )
by Matthijs
07:08
created

UriDecoratorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstruct() 0 8 1
1
<?php
2
/*
3
 * This file is part of the Spider package.
4
 *
5
 * (c) Matthijs van den Bos <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace VDB\Spider\Tests\Uri;
12
13
use VDB\Spider\Tests\TestCase;
14
use VDB\Uri\Uri;
15
use VDB\Spider\Uri\UriDecorator;
16
17
/**
18
 *
19
 */
20
class UriDecoratorTest extends TestCase
21
{
22
    /**
23
     * @covers VDB\Spider\Uri\UriDecorator
24
     */
25
    public function testConstruct()
26
    {
27
        $stub = $this->getMockForAbstractClass('VDB\\Spider\\Uri\\UriDecorator', ['http://example.org']);
28
        $this->assertEquals('http://example.org', $stub->toString());
29
30
        $stub = $this->getMockForAbstractClass('VDB\\Spider\\Uri\\UriDecorator', [new Uri('http://example.org')]);
31
        $this->assertEquals('http://example.org', $stub->toString());
32
    }
33
}
34