phpunit: Create class aliases for interfaces in PHPUnit 4/6 compat layer
Change-Id: If36bb3403f226b0399e37d2fd63b4338b1de10ae
This commit is contained in:
parent
e4d47e717d
commit
96bbe7cb4c
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ spl_autoload_register( function ( $class ) {
|
|||
$newForm = str_replace( '_', '\\', $class );
|
||||
}
|
||||
|
||||
if ( class_exists( $newForm ) ) {
|
||||
if ( class_exists( $newForm ) || interface_exists( $newForm ) ) {
|
||||
// If the new class name exists, alias
|
||||
// the old name to it.
|
||||
class_alias( $newForm, $class );
|
||||
|
|
|
|||
Loading…
Reference in a new issue