mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
33 lines
844 B
PHP
33 lines
844 B
PHP
<?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));
|
|
}
|
|
}
|