mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX PHPUnit latest not working with composer installed builds
When using composer, we must rely on the composer autoloader to load in PHPUnit and not try do to so ourselves, as the old PHPUnit\Autoload.php file doesnt understand how to find things in vendor
This commit is contained in:
parent
786d0516da
commit
60c4d999d8
@ -20,6 +20,7 @@ class PhpUnitWrapper_3_5 extends PhpUnitWrapper {
|
|||||||
* Initialise the wrapper class.
|
* Initialise the wrapper class.
|
||||||
*/
|
*/
|
||||||
public function init() {
|
public function init() {
|
||||||
|
if(!class_exists('PHPUnit_Framework_TestCase')) {
|
||||||
require_once 'PHP/CodeCoverage.php';
|
require_once 'PHP/CodeCoverage.php';
|
||||||
require_once 'PHP/CodeCoverage/Report/HTML.php';
|
require_once 'PHP/CodeCoverage/Report/HTML.php';
|
||||||
|
|
||||||
@ -27,6 +28,7 @@ class PhpUnitWrapper_3_5 extends PhpUnitWrapper {
|
|||||||
|
|
||||||
require_once 'PHP/CodeCoverage/Filter.php';
|
require_once 'PHP/CodeCoverage/Filter.php';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Overwrites beforeRunTests. Initiates coverage-report generation if
|
* Overwrites beforeRunTests. Initiates coverage-report generation if
|
||||||
|
Loading…
Reference in New Issue
Block a user