Ejemplo n.º 1
0
<?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;
Ejemplo n.º 2
0
 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));
 }