20 lines
565 B
PHP
20 lines
565 B
PHP
|
<?php
|
||
|
|
||
|
namespace PhpOffice\PhpSpreadsheetTests\Helper;
|
||
|
|
||
|
use PhpOffice\PhpSpreadsheet\Helper\Migrator;
|
||
|
|
||
|
class MigratorTest extends \PHPUnit_Framework_TestCase
|
||
|
{
|
||
|
public function testMappingOnlyContainExistingClasses()
|
||
|
{
|
||
|
$migrator = new Migrator();
|
||
|
|
||
|
foreach ($migrator->getMapping() as $classname) {
|
||
|
if (substr_count($classname, '\\')) {
|
||
|
$this->assertTrue(class_exists($classname) || interface_exists($classname), 'mapping is wrong, class does not exists in project: ' . $classname);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|