Completed
Pull Request — master (#145)
by Chuck
05:03
created

ReconstitutingADocBlockTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A tearDown() 0 4 1
A testReconstituteADocBlock() 0 10 1
1
<?php declare(strict_types=1);
2
3
/**
4
 * This file is part of phpDocumentor.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * @copyright 2010-2018 Mike van Riel<[email protected]>
10
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
11
 * @link      http://phpdoc.org
12
 */
13
14
namespace phpDocumentor\Reflection;
15
16
use Mockery as m;
17
use PHPUnit\Framework\TestCase;
18
19
/**
20
 * @coversNothing
21
 */
22
class ReconstitutingADocBlockTest extends TestCase
23
{
24
    /**
25
     * Call Mockery::close after each test.
26
     */
27
    public function tearDown(): void
28
    {
29
        m::close();
30
    }
31
32
    public function testReconstituteADocBlock(): void
33
    {
34
        /**
35
         * @var string $docComment
36
         * @var string $reconstitutedDocComment
37
         */
38
        include(__DIR__ . '/../../examples/03-reconstituting-a-docblock.php');
39
40
        $this->assertSame($docComment, $reconstitutedDocComment);
41
    }
42
}
43