2016-11-27 15:11:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Helper;
|
|
|
|
|
|
|
|
use PhpOffice\PhpSpreadsheet\Helper\Migrator;
|
2017-05-17 22:02:17 +00:00
|
|
|
use PHPUnit_Framework_TestCase;
|
2016-11-27 15:11:16 +00:00
|
|
|
|
2017-05-17 22:02:17 +00:00
|
|
|
class MigratorTest extends PHPUnit_Framework_TestCase
|
2016-11-27 15:11:16 +00:00
|
|
|
{
|
|
|
|
public function testMappingOnlyContainExistingClasses()
|
|
|
|
{
|
|
|
|
$migrator = new Migrator();
|
|
|
|
|
|
|
|
foreach ($migrator->getMapping() as $classname) {
|
|
|
|
if (substr_count($classname, '\\')) {
|
2017-09-20 05:55:42 +00:00
|
|
|
self::assertTrue(class_exists($classname) || interface_exists($classname), 'mapping is wrong, class does not exists in project: ' . $classname);
|
2016-11-27 15:11:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|