Skip to content

Commit 7c25248

Browse files
committed
Failing test case: php documentor strips the first char of an imported root namespace
1 parent 6df36de commit 7c25248

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unit/Types/ContextFactoryTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Mockery as m;
1717
use phpDocumentor\Reflection\DocBlock,
1818
phpDocumentor\Reflection\DocBlock\Tag;
19+
use phpDocumentor;
1920
use \ReflectionClass; // yes, the slash is part of the test
2021

2122
/**
@@ -49,6 +50,7 @@ public function testReadsAliasesFromClassReflection()
4950
'm' => 'Mockery',
5051
'DocBlock' => 'phpDocumentor\Reflection\DocBlock',
5152
'Tag' => 'phpDocumentor\Reflection\DocBlock\Tag',
53+
'phpDocumentor' => 'phpDocumentor',
5254
'ReflectionClass' => 'ReflectionClass'
5355
];
5456
$context = $fixture->createFromReflector(new ReflectionClass($this));
@@ -79,6 +81,7 @@ public function testReadsAliasesFromProvidedNamespaceAndContent()
7981
'm' => 'Mockery',
8082
'DocBlock' => 'phpDocumentor\Reflection\DocBlock',
8183
'Tag' => 'phpDocumentor\Reflection\DocBlock\Tag',
84+
'phpDocumentor' => 'phpDocumentor',
8285
'ReflectionClass' => 'ReflectionClass'
8386
];
8487
$context = $fixture->createForNamespace(__NAMESPACE__, file_get_contents(__FILE__));

0 commit comments

Comments
 (0)