Skip to content

Commit 8a17273

Browse files
authored
Merge pull request #31 from rebuy-de/fix_phpunit-v6
Fix ClassNotFound for PHPUnit > v6
2 parents 5d649dd + aa8767c commit 8a17273

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)