Completed
Push — master ( 03b704...7524ab )
by Jaap
01:44
created

DocblocksWithAnnotationsTest::tearDown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
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
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