Skip to content

Commit

Permalink
Alias class name that not defined forward-compatibility in older PHPUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
gongo committed Sep 7, 2019
1 parent 05b32c8 commit b413699
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
<?php
require 'vendor/autoload.php';

if (!class_exists('PHPUnit\Framework\Error\Warning')) {
class_alias('PHPUnit_Framework_Error_Warning', 'PHPUnit\Framework\Error\Warning');
}

0 comments on commit b413699

Please sign in to comment.