-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from hiqsol/master
fixed template for bootstrap
- Loading branch information
Showing
1 changed file
with
2 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,5 @@ | ||
<?php | ||
/** | ||
* PHPUnit plugin for HiDev. | ||
* | ||
* @link https://github.com/hiqdev/hidev-phpunit | ||
* @package hidev-phpunit | ||
* @license BSD-3-Clause | ||
* @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/) | ||
*/ | ||
error_reporting(E_ALL & ~E_NOTICE); | ||
error_reporting(E_ALL); | ||
$bootstrap = __DIR__ . '/../src/_bootstrap.php'; | ||
require_once file_exists($bootstrap) ? $bootstrap : __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 | ||
{ | ||
} | ||
} | ||
require_once __DIR__ . '/../vendor/autoload.php'; |