dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
phpunit: Create class aliases for interfaces in PHPUnit 4/6 compat layer
[lhc/web/wiklou.git]
/
tests
/
common
/
TestsAutoLoader.php
diff --git
a/tests/common/TestsAutoLoader.php
b/tests/common/TestsAutoLoader.php
index
b626063
..
eef7e90
100644
(file)
--- a/
tests/common/TestsAutoLoader.php
+++ b/
tests/common/TestsAutoLoader.php
@@
-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 );