<?php error_reporting(E_ALL ^ E_NOTICE); define("TEST_HOME", __DIR__); define("CODE_HOME", dirname(__DIR__)); require CODE_HOME . "/lib/Ntentan.php"; \ntentan\Ntentan::$cacheMethod = 'volatile'; \ntentan\Ntentan::$home = CODE_HOME;
protected function getConfig() { \ntentan\Ntentan::$configPath = TEST_HOME . "/config/{$GLOBALS['config']}/"; return array('ntentan' => parse_ini_file(TEST_HOME . "/config/{$GLOBALS['config']}/ntentan.ini", true), 'app' => parse_ini_file(TEST_HOME . "/config/{$GLOBALS['config']}/app.ini", true)); }