Completed
Pull Request — master (#5)
by Chuck
02:12
created

testFindingOnSamplePhpdocLayout()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of phpDocumentor.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @copyright 2010-2015 Mike van Riel<[email protected]>
9
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
 * @link      http://phpdoc.org
11
 */
12
13
namespace Flyfinder;
14
15
/**
16
 * Integration test against examples/03-sample-phpdoc-layout.php
17
 * @coversNothing
18
 */
19
class FindOnSamplePhpdocLayout extends \PHPUnit_Framework_TestCase
20
{
21
    /**
22
     * @var string[] $result
23
     */
24
    public function testFindingOnSamplePhpdocLayout()
25
    {
26
        include(__DIR__ . '/../../examples/03-sample-phpdoc-layout.php');
27
28
        $this->assertEquals(4, count($result));
0 ignored issues
show
Bug introduced by
The variable $result does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
29
        $this->assertEquals("JmsSerializerServiceProvider.php", $result[0]['basename']);
30
        $this->assertEquals("MonologServiceProvider.php", $result[1]['basename']);
31
        $this->assertEquals("Application.php", $result[2]['basename']);
32
        $this->assertEquals("Bootstrap.php", $result[3]['basename']);
33
    }
34
}
35