| 1 | <?php  | 
            ||
| 7 | abstract class TestCase extends \PHPUnit\Framework\TestCase  | 
            ||
| 8 |     { | 
            ||
| 9 | protected function getMock($originalClassName, $methods = [], $arguments = [], $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $cloneArguments = false, $callOriginalMethods = false, $proxyTarget = null)  | 
            ||
| 13 | }  | 
            ||
| 14 | } else { | 
            ||
| 19 | 
This check looks for classes that have been defined more than once in the same file.
If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.
This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.