 aed27a0bed
			
		
	
	
		aed27a0bed
		
	
	
	
	
		
			
			Use the `PHPUnit\Framework\TestCase` notation instead of `PHPUnit_Framework_TestCase` while extending our TestCases. This will help us migrate to PHPUnit 6, that [no longer support snake case class names](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-6.0.md#changed-1).
		
			
				
	
	
		
			21 lines
		
	
	
		
			577 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			577 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace PhpOffice\PhpSpreadsheetTests\Helper;
 | |
| 
 | |
| use PhpOffice\PhpSpreadsheet\Helper\Migrator;
 | |
| use PHPUnit\Framework\TestCase;
 | |
| 
 | |
| class MigratorTest extends TestCase
 | |
| {
 | |
|     public function testMappingOnlyContainExistingClasses()
 | |
|     {
 | |
|         $migrator = new Migrator();
 | |
| 
 | |
|         foreach ($migrator->getMapping() as $classname) {
 | |
|             if (substr_count($classname, '\\')) {
 | |
|                 self::assertTrue(class_exists($classname) || interface_exists($classname), 'mapping is wrong, class does not exists in project: ' . $classname);
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 |