diff --git a/tests/Utils/ClearStateTestListener.php b/tests/Utils/ClearStateTestListener.php index 327af5a9e4d2f48384a251c62c63bd0b35c32b52..7a92fac854cac816e3fac5e70f9ce00ae2c0bc98 100644 --- a/tests/Utils/ClearStateTestListener.php +++ b/tests/Utils/ClearStateTestListener.php @@ -39,7 +39,7 @@ class ClearStateTestListener extends \PHPUnit_Framework_BaseTestListener self::$backups['$_GET'] = $_GET; self::$backups['$_POST'] = $_POST; self::$backups['$_SERVER'] = $_SERVER; - self::$backups['$_SESSION'] = isset($_SESSION) ? $_SESSION : []; + self::$backups['$_SESSION'] = isset($_SESSION) ? $_SESSION : array(); self::$backups['$_REQUEST'] = $_REQUEST; } }