From 76d3c7cdc411d29c10b963267d8d3ef9d85e01d3 Mon Sep 17 00:00:00 2001 From: Joshua Sherman Date: Fri, 17 Jan 2014 13:36:08 -0500 Subject: [PATCH] Fixed glitch causing a lack of coverage The Session class relies on the REQUEST_METHOD being set, else it won't start up. Added the value and the coverage jumped to 100% --- tests/classes/SessionTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/classes/SessionTest.php b/tests/classes/SessionTest.php index ad67181..923090a 100644 --- a/tests/classes/SessionTest.php +++ b/tests/classes/SessionTest.php @@ -10,6 +10,7 @@ class SessionTest extends PHPUnit_Framework_TestCase } $_SERVER['HTTP_USER_AGENT'] = 'yes'; + $_SERVER['REQUEST_METHOD'] = 'GET'; } public function testFiles()