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:
Ingo Schommer 2010-05-25 03:51:11 +00:00
parent 23e7a9a22d
commit 65b3bec774

View File

@ -262,7 +262,7 @@ class TestRunner extends Controller {
$results = new PHPUnit_Framework_TestResult();
$results->addListener($reporter);
if($coverage) {
if($coverage === true) {
$results->collectCodeCoverageInformation(true);
$suite->run($results);