Completed
Pull Request — master (#128)
by
unknown
02:28
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
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-2015 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
class ReconstitutingADocBlockTest 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 testReconstituteADocBlock()
32
    {
33
        /**
34
         * @var string $docComment
35
         * @var string $reconstitutedDocComment
36
         */
37
        include(__DIR__ . '/../../examples/03-reconstituting-a-docblock.php');
38
39
        $this->assertSame($docComment, $reconstitutedDocComment);
40
    }
41
}
42