mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-11 21:50:15 +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
|
class StatusTest extends \EGroupware\Api\AppTest
|
||||||
{
|
{
|
||||||
|
|
||||||
private static $map_file = __DIR__.'/status_map.json';
|
private static $map_file = '/status_map.json';
|
||||||
|
|
||||||
protected $bo;
|
protected $bo;
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ class StatusTest extends \EGroupware\Api\AppTest
|
|||||||
*/
|
*/
|
||||||
public function testStatusChange()
|
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
|
// Strip the comments out of the json file, they're not valid
|
||||||
$json = preg_replace("#(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|([\s\t]//.*)|(^//.*)#", '', $json);
|
$json = preg_replace("#(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|([\s\t]//.*)|(^//.*)#", '', $json);
|
||||||
$map = json_decode($json, true);
|
$map = json_decode($json, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user