Test Failed
Push — master ( 72a6c5...9329b7 )
by Arun
03:52
created

ReconstitutingADocBlockTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
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 phpDocumentor\Reflection\DocBlock\Description;
16
use phpDocumentor\Reflection\DocBlock\StandardTagFactory;
17
use phpDocumentor\Reflection\DocBlock\Tag;
18
use phpDocumentor\Reflection\DocBlock\Tags\See;
19
20
/**
21
 * @coversNothing
22
 */
23
class ReconstitutingADocBlockTest extends \PHPUnit_Framework_TestCase
24
{
25
    public function testReconstituteADocBlock()
26
    {
27
        /**
28
         * @var string $docComment
29
         * @var string $reconstitutedDocComment
30
         */
31
        include(__DIR__ . '/../../examples/03-reconstituting-a-docblock.php');
32
33
        $this->assertSame($docComment, $reconstitutedDocComment);
0 ignored issues
show
Bug introduced by
The variable $docComment does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
Bug introduced by
The variable $reconstitutedDocComment does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
34
    }
35
}
36