Completed
Push — develop ( fbdd82...317691 )
by Mike
09:29
created

AssetTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
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 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A itRegistersTheContentOfAnAsset() 0 8 1
1
<?php
2
/**
3
 * This file is part of phpDocumentor.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @copyright 2010-2016 Mike van Riel<[email protected]>
9
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
 * @link      http://phpdoc.org
11
 */
12
13
namespace phpDocumentor\DomainModel\Renderer;
14
15
/**
16
 * @coversDefaultClass phpDocumentor\DomainModel\Renderer\Asset
17
 * @covers ::<private>
18
 */
19
final class AssetTest extends \PHPUnit_Framework_TestCase
20
{
21
    /**
22
     * @test
23
     * @covers ::__construct
24
     * @covers ::content
25
     */
26
    public function itRegistersTheContentOfAnAsset()
27
    {
28
        $content = 'content';
29
30
        $asset = new Asset($content);
31
32
        $this->assertSame($content, $asset->content());
33
    }
34
}
35