Completed
Pull Request — master (#134)
by Tomáš
01:18
created

DocblocksWithAnnotationsTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 26
rs 10
c 0
b 0
f 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
use Mockery as m;
16
use PHPUnit\Framework\TestCase;
17
18
/**
19
 * @coversNothing
20
 */
21
final class DocblocksWithAnnotationsTest extends TestCase
22
{
23
    /**
24
     * Call Mockery::close after each test.
25
     */
26
    public function tearDown()
27
    {
28
        m::close();
29
    }
30
31
    public function testDocblockWithAnnotations()
32
    {
33
        $docComment = <<<DOCCOMMENT
34
            /**
35
     * @var \DateTime[]
36
     * @Groups({"a", "b"})
37
     * @ORM\Entity
38
     */
39
DOCCOMMENT;
40
41
        $factory  = DocBlockFactory::createInstance();
42
        $docblock = $factory->create($docComment);
43
44
        $this->assertCount(3, $docblock->getTags());
45
    }
46
}
47