Skip to content

Commit aa8767c

Browse files
author
Shockwave2k
committed
Fix ClassNotFound for PHPUnit > v6
1 parent 5d649dd commit aa8767c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Codeception/function.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
if (!class_exists('PHPUnit_Framework_Assert') && class_exists('PHPUnit\Framework\Assert')) {
3+
class_alias('PHPUnit\Framework\Assert', 'PHPUnit_Framework_Assert');
4+
}
5+
26
if (!function_exists('verify')) {
37

48
/**

0 commit comments

Comments
 (0)