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

testDocblockWithAnnotations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 15
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
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