From 65b3bec7743eddbfcbfb050f76165f4251aa13f8 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 03:51:11 +0000 Subject: [PATCH] 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 --- dev/TestRunner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/TestRunner.php b/dev/TestRunner.php index f04c2d76f..fa7b869b3 100644 --- a/dev/TestRunner.php +++ b/dev/TestRunner.php @@ -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);