LoadAllClasses::test()   A
last analyzed

Complexity

Conditions 4
Paths 3

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
c 2
b 1
f 1
dl 0
loc 8
rs 9.2
cc 4
eloc 6
nc 3
nop 0
1
<?php
2
#require 'vendor/autoload.php';
3
4
class LoadAllClasses extends PHPUnit_Framework_TestCase
5
{
6
7
    public function test()
8
    {
9
        foreach (new RecursiveIteratorIterator(
10
        new RecursiveDirectoryIterator('src',
11
                                       RecursiveDirectoryIterator::FOLLOW_SYMLINKS)) as $file)
12
            if ($file->isFile() && $file->getExtension() === 'php')
13
                require_once $file;
14
    }
15
}
16