Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit d83fad5

Browse files
committed
Alias deprecated errors for PHPUnit lowest dep
1 parent db6b1c3 commit d83fad5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/autoload.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
* @copyright Copyright (c) 2017 Zend Technologies USA Inc. (http://www.zend.com)
55
* @license https://github.com/zendframework/zend-view/blob/master/LICENSE.md New BSD License
66
*/
7+
8+
if (class_exists(PHPUnit_Framework_Error_Deprecated::class)
9+
&& ! class_exists(PHPUnit\Framework\Error\Deprecated::class)) {
10+
class_alias(PHPUnit_Framework_Error_Deprecated::class, PHPUnit\Framework\Error\Deprecated::class);
11+
}

0 commit comments

Comments
 (0)