mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX #5136 Ensure $coverage argument to TestRunner::runTests() has a strict check before running coverage tests, as sometimes an SS_HTTPRequest object can be passed into this argument (from r100415)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105563 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
23e7a9a22d
commit
65b3bec774
@ -262,7 +262,7 @@ class TestRunner extends Controller {
|
|||||||
$results = new PHPUnit_Framework_TestResult();
|
$results = new PHPUnit_Framework_TestResult();
|
||||||
$results->addListener($reporter);
|
$results->addListener($reporter);
|
||||||
|
|
||||||
if($coverage) {
|
if($coverage === true) {
|
||||||
$results->collectCodeCoverageInformation(true);
|
$results->collectCodeCoverageInformation(true);
|
||||||
$suite->run($results);
|
$suite->run($results);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user