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

FindOnSamplePhpdocLayout   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testFindingOnSamplePhpdocLayout() 0 10 1
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