Fixes namespace error in ExampleFinder

This commit is contained in:
Jaapio
2017-08-30 20:51:28 +02:00
committed by Jaap van Otterdijk
parent 86e24012a3
commit 1d3a5e8585
2 changed files with 33 additions and 1 deletions
+32
View File
@@ -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));
}
}