mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Move __DIR__ to see if that works for PHP v5.4 & 5.5
This commit is contained in:
parent
562236c3ae
commit
21aa03d7ea
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user