 aef4d711f5
			
		
	
	
		aef4d711f5
		
			
		
	
	
	
	
		
			
			Because even if it doesn't make a difference in practice, it is technically more correct to call static methods statically. It also better advertise that those methods can be used from any context.
		
			
				
	
	
		
			21 lines
		
	
	
		
			595 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			595 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace PhpOffice\PhpSpreadsheetTests\Helper;
 | |
| 
 | |
| use PhpOffice\PhpSpreadsheet\Helper\Migrator;
 | |
| use PHPUnit_Framework_TestCase;
 | |
| 
 | |
| class MigratorTest extends PHPUnit_Framework_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);
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 |