1 | <?php |
||
13 | class ExampleFinderTest extends TestCase |
||
14 | { |
||
15 | /** @var ExampleFinder */ |
||
16 | private $fixture; |
||
17 | |||
18 | /** |
||
19 | * Call Mockery::close after each test. |
||
20 | */ |
||
21 | public function tearDown() |
||
22 | { |
||
23 | m::close(); |
||
24 | } |
||
25 | |||
26 | public function setUp() |
||
27 | { |
||
28 | $this->fixture = new ExampleFinder(); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @covers ::find |
||
33 | * @covers ::getSourceDirectory |
||
34 | * @uses \phpDocumentor\Reflection\DocBlock\Tags\Example |
||
35 | * @uses \phpDocumentor\Reflection\DocBlock\Description |
||
36 | */ |
||
37 | public function testFileNotFound() |
||
38 | { |
||
39 | $example = new Example('./example.php', false, 1, 0, new Description('Test')); |
||
40 | $this->assertSame('** File not found : ./example.php **', $this->fixture->find($example)); |
||
41 | } |
||
42 | } |
||
43 |