Index: tests/phpunit/includes/testcase.php
===================================================================
--- tests/phpunit/includes/testcase.php	(revision 31513)
+++ tests/phpunit/includes/testcase.php	(working copy)
@@ -333,7 +333,7 @@
 		}
 		$parts = parse_url($url);
 		if (isset($parts['scheme'])) {
-			$req = $parts['path'];
+			$req = isset( $parts['path'] ) ? $parts['path'] : '';
 			if (isset($parts['query'])) {
 				$req .= '?' . $parts['query'];
 				// parse the url query vars into $_GET
