Completed
Push — master ( ce5d9a...b8256c )
by Jaap
08:59
created

testFindingOnSamplePhpdocLayout()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of phpDocumentor.
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * @link      http://phpdoc.org
12
 */
13
14
namespace Flyfinder;
15
16
use PHPUnit\Framework\TestCase;
17
18
/**
19
 * Integration test against examples/03-sample-phpdoc-layout.php
20
 *
21
 * @coversNothing
22
 */
23
class FindOnSamplePhpdocLayoutTest extends TestCase
24
{
25
    public function testFindingOnSamplePhpdocLayout() : void
26
    {
27
        $result = [];
28
        include __DIR__ . '/../../examples/03-sample-phpdoc-layout.php';
29
30
        $this->assertCount(4, $result);
31
        $this->assertSame('JmsSerializerServiceProvider.php', $result[0]['basename']);
32
        $this->assertSame('MonologServiceProvider.php', $result[1]['basename']);
33
        $this->assertSame('Application.php', $result[2]['basename']);
34
        $this->assertSame('Bootstrap.php', $result[3]['basename']);
35
    }
36
}
37