dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4d47e7
)
phpunit: Create class aliases for interfaces in PHPUnit 4/6 compat layer
author
Kunal Mehta
<legoktm@member.fsf.org>
Sat, 7 Apr 2018 23:06:25 +0000
(16:06 -0700)
committer
Kunal Mehta
<legoktm@member.fsf.org>
Sun, 8 Apr 2018 00:54:52 +0000
(17:54 -0700)
Change-Id: If36bb3403f226b0399e37d2fd63b4338b1de10ae
tests/common/TestsAutoLoader.php
patch
|
blob
|
history
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 );