Skip to content

Commit 1d3a5e8

Browse files
committed
Fixes namespace error in ExampleFinder
1 parent 86e2401 commit 1d3a5e8

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

src/DocBlock/ExampleFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @link http://phpdoc.org
1111
*/
1212

13-
namespace phpDocumentor\Reflection;
13+
namespace phpDocumentor\Reflection\DocBlock;
1414

1515
use phpDocumentor\Reflection\DocBlock\Tags\Example;
1616

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
namespace phpDocumentor\Reflection\DocBlock;
4+
5+
use phpDocumentor\Reflection\DocBlock\Tags\Example;
6+
7+
/**
8+
* @coversDefaultClass phpDocumentor\Reflection\DocBlock\ExampleFinder
9+
* @covers ::<private>
10+
*/
11+
class ExampleFinderTest extends \PHPUnit_Framework_TestCase
12+
{
13+
/** @var ExampleFinder */
14+
private $fixture;
15+
16+
public function setUp()
17+
{
18+
$this->fixture = new ExampleFinder();
19+
}
20+
21+
/**
22+
* @covers ::find
23+
* @covers ::getSourceDirectory
24+
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Example
25+
* @uses \phpDocumentor\Reflection\DocBlock\Description
26+
*/
27+
public function testFileNotFound()
28+
{
29+
$example = new Example('./example.php', false, 1, 0, new Description('Test'));
30+
$this->assertSame('** File not found : ./example.php **', $this->fixture->find($example));
31+
}
32+
}

0 commit comments

Comments
 (0)