Completed
Push — master ( 6f4e11...e12aed )
by Matthijs
11:15 queued 07:09
created

DiscoveredUriTest::testDepthFound()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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\DiscoveredUri;
16
17
/**
18
 *
19
 */
20
class DiscoveredUriTest extends TestCase
21
{
22
    /**
23
     * @covers VDB\Spider\Uri\DiscoveredUri
24
     */
25
    public function testDepthFound()
26
    {
27
        $uri = new DiscoveredUri('http://example.org');
28
        $uri->setDepthFound(12);
29
        $this->assertEquals(12, $uri->getDepthFound());
30
    }
31
}
32