This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
-
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.
* Extend PHPUnit support * empty * try to support 7.2 even on 4.0 * Revert "try to support 7.2 even on 4.0" This reverts commit 46e733b. * debug * Revert "debug" This reverts commit 27d3369. * respect php vs phpunit incompatibilities * series method is not available on 4.0
- Loading branch information
Showing
7 changed files
with
63 additions
and
12 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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of PHPUnit Good Practices. | ||
* | ||
* (c) Dariusz Rumiński <[email protected]> | ||
* | ||
* This source file is subject to the MIT license that is bundled | ||
* with this source code in the file LICENSE. | ||
*/ | ||
|
||
if (!class_exists('PHPUnit\Framework\Error\Warning')) { | ||
class_alias('PHPUnit_Framework_Error_Warning', 'PHPUnit\Framework\Error\Warning'); | ||
} | ||
|
||
if (!class_exists('PHPUnit\Framework\TestCase')) { | ||
class_alias('PHPUnit_Framework_TestCase', 'PHPUnit\Framework\TestCase'); | ||
} | ||
|
||
if (!class_exists('PHPUnit\Runner\Version')) { | ||
class_alias('PHPUnit_Runner_Version', 'PHPUnit\Runner\Version'); | ||
} | ||
|
||
if ( | ||
PHP_VERSION_ID >= 70200 && version_compare(PHPUnit\Runner\Version::id(), '4.1') < 0 | ||
) { | ||
die(sprintf( | ||
"\e[45mPHPUnit %s: Is not compatible with PHP %s.\e[0m", | ||
PHPUnit\Runner\Version::id(), | ||
PHP_VERSION | ||
)); | ||
} | ||
|
||
require __DIR__.'/../vendor/autoload.php'; |