Completed
Push — master ( 48d372...183824 )
by Jaap
02:56 queued 01:10
created

DocblocksWithAnnotationsTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 3
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testDocblockWithAnnotations() 0 15 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-2017 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\Reflection;
14
15
/**
16
 * @coversNothing
17
 */
18
final class DocblocksWithAnnotationsTest extends \PHPUnit_Framework_TestCase
19
{
20
    public function testDocblockWithAnnotations()
21
    {
22
        $docComment = <<<DOCCOMMENT
23
            /**
24
     * @var \DateTime[]
25
     * @Groups({"a", "b"})
26
     */
27
DOCCOMMENT;
28
29
30
        $factory  = DocBlockFactory::createInstance();
31
        $docblock = $factory->create($docComment);
32
33
        $this->assertCount(2, $docblock->getTags());
34
    }
35
}
36