mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #11750 from bancer/11528-code-coverage
fixes Error: Class 'PHP_CodeCoverage' not found error
This commit is contained in:
commit
ee02d4274f
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,14 @@
|
||||||
if (!class_exists('PHPUnit_TextUI_TestRunner')) {
|
if (!class_exists('PHPUnit_TextUI_TestRunner')) {
|
||||||
require_once 'PHPUnit/TextUI/TestRunner.php';
|
require_once 'PHPUnit/TextUI/TestRunner.php';
|
||||||
}
|
}
|
||||||
|
if (class_exists('SebastianBergmann\CodeCoverage\CodeCoverage')) {
|
||||||
|
class_alias('SebastianBergmann\CodeCoverage\CodeCoverage', 'PHP_CodeCoverage');
|
||||||
|
class_alias('SebastianBergmann\CodeCoverage\Report\Text', 'PHP_CodeCoverage_Report_Text');
|
||||||
|
class_alias('SebastianBergmann\CodeCoverage\Report\PHP', 'PHP_CodeCoverage_Report_PHP');
|
||||||
|
class_alias('SebastianBergmann\CodeCoverage\Report\Clover', 'PHP_CodeCoverage_Report_Clover');
|
||||||
|
class_alias('SebastianBergmann\CodeCoverage\Report\Html\Facade', 'PHP_CodeCoverage_Report_HTML');
|
||||||
|
class_alias('SebastianBergmann\CodeCoverage\Exception', 'PHP_CodeCoverage_Exception');
|
||||||
|
}
|
||||||
|
|
||||||
App::uses('CakeFixtureManager', 'TestSuite/Fixture');
|
App::uses('CakeFixtureManager', 'TestSuite/Fixture');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue