Completed
Push — develop ( 3851aa...435d68 )
by Adrien
21:08
created

MigratorTest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A testMappingOnlyContainExistingClasses() 0 10 4
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheetTests\Helper;
4
5
use PhpOffice\PhpSpreadsheet\Helper\Migrator;
6
7
class MigratorTest extends \PHPUnit_Framework_TestCase
8
{
9
    public function testMappingOnlyContainExistingClasses()
10
    {
11
        $migrator = new Migrator();
12
13
        foreach ($migrator->getMapping() as $classname) {
14
            if (substr_count($classname, '\\')) {
15
                $this->assertTrue(class_exists($classname) || interface_exists($classname), 'mapping is wrong, class does not exists in project: ' . $classname);
16
            }
17
        }
18
    }
19
}
20