Skip to content

Commit

Permalink
removed phpunit 6 compatibility hack
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed May 18, 2017
1 parent b38c0f5 commit 4889e11
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tests/_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@
* @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
*/

error_reporting(E_ALL & ~E_NOTICE);
error_reporting(E_ALL);

require_once __DIR__ . '/../vendor/autoload.php';

/*
* Ensures compatibility with PHPUnit 6.x
*/
if (!class_exists('PHPUnit_Framework_Constraint') && class_exists('PHPUnit\Framework\Constraint\Constraint')) {
abstract class PHPUnit_Framework_Constraint extends \PHPUnit\Framework\Constraint\Constraint
{
}
}
if (!class_exists('PHPUnit_Framework_TestCase') && class_exists('PHPUnit\Framework\TestCase')) {
abstract class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase
{
}
}

0 comments on commit 4889e11

Please sign in to comment.