From 21aa03d7ea1c3e917a1a3a985094664a01c43061 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 2 Feb 2017 16:53:59 -0700 Subject: [PATCH] Move __DIR__ to see if that works for PHP v5.4 & 5.5 --- infolog/test/StatusTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infolog/test/StatusTest.php b/infolog/test/StatusTest.php index 5a3f64975e..0107ac0dc7 100644 --- a/infolog/test/StatusTest.php +++ b/infolog/test/StatusTest.php @@ -27,7 +27,7 @@ use Egroupware\Api; class StatusTest extends \EGroupware\Api\AppTest { - private static $map_file = __DIR__.'/status_map.json'; + private static $map_file = '/status_map.json'; protected $bo; @@ -72,7 +72,7 @@ class StatusTest extends \EGroupware\Api\AppTest */ public function testStatusChange() { - $json = file_get_contents(realpath(static::$map_file)); + $json = file_get_contents(realpath(__DIR__.static::$map_file)); // Strip the comments out of the json file, they're not valid $json = preg_replace("#(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|([\s\t]//.*)|(^//.*)#", '', $json); $map = json_decode($json, true);