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

TypeTest   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 itRegistersTheTypeName() 0 6 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\ReadModel;
14
15
/**
16
 * @coversDefaultClass phpDocumentor\DomainModel\ReadModel\Type
17
 * @covers ::<private>
18
 */
19
final class TypeTest extends \PHPUnit_Framework_TestCase
20
{
21
    /**
22
     * @test
23
     * @covers ::__construct
24
     * @covers ::__toString
25
     */
26
    public function itRegistersTheTypeName()
27
    {
28
        $type = new Type('all');
29
30
        $this->assertSame('all', (string)$type);
31
    }
32
}
33