mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 18:13:13 +00:00
Fixes namespace error in ExampleFinder
This commit is contained in:
committed by
Jaap van Otterdijk
parent
86e24012a3
commit
1d3a5e8585
@@ -10,7 +10,7 @@
|
|||||||
* @link http://phpdoc.org
|
* @link http://phpdoc.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpDocumentor\Reflection;
|
namespace phpDocumentor\Reflection\DocBlock;
|
||||||
|
|
||||||
use phpDocumentor\Reflection\DocBlock\Tags\Example;
|
use phpDocumentor\Reflection\DocBlock\Tags\Example;
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace phpDocumentor\Reflection\DocBlock;
|
||||||
|
|
||||||
|
use phpDocumentor\Reflection\DocBlock\Tags\Example;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @coversDefaultClass phpDocumentor\Reflection\DocBlock\ExampleFinder
|
||||||
|
* @covers ::<private>
|
||||||
|
*/
|
||||||
|
class ExampleFinderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
{
|
||||||
|
/** @var ExampleFinder */
|
||||||
|
private $fixture;
|
||||||
|
|
||||||
|
public function setUp()
|
||||||
|
{
|
||||||
|
$this->fixture = new ExampleFinder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @covers ::find
|
||||||
|
* @covers ::getSourceDirectory
|
||||||
|
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Example
|
||||||
|
* @uses \phpDocumentor\Reflection\DocBlock\Description
|
||||||
|
*/
|
||||||
|
public function testFileNotFound()
|
||||||
|
{
|
||||||
|
$example = new Example('./example.php', false, 1, 0, new Description('Test'));
|
||||||
|
$this->assertSame('** File not found : ./example.php **', $this->fixture->find($example));
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user