Пример #1
0
<?php

/* 
 * MetaPlayer 1.0
 *  
 * Licensed under the GPL terms
 * To use it on other terms please contact us
 * 
 * Copyright(c) 2010-2011 Val Dubrava [ valery.dubrava@gmail.com ] 
 *  
 */
require_once __DIR__ . '/../src/Oak/Common/Env.php';
use Oak\Common\Env;
Env::setTestEnv();
require_once __DIR__ . '/../src/bootstrap.php';
require_once 'BaseTest.php';
Пример #2
0
<?php

/* 
 * MetaPlayer 1.0
 *  
 * Licensed under the GPL terms
 * To use it on other terms please contact us
 * 
 * Copyright(c) 2010-2011 Val Dubrava [ valery.dubrava@gmail.com ] 
 *  
 */
use Oak\Common\Env;
$CACHE_IMPL = Env::isDebug() || Env::isTest() ? array() : array('impl' => 'file', 'directory' => realpath(__DIR__ . '/../data/cache'));
$SCAN_DIRS = array();
$SCAN_DIRS[] = realpath(__DIR__ . '/../src/MetaPlayer');
//if (Env::isTest()) {
//    $SCAN_DIRS[] = realpath(__DIR__ . '/../tests/src');
//}
return array('ding' => array('log4php.properties' => __DIR__ . '/log4php.xml', 'factory' => array('properties' => array('config.dir' => __DIR__), 'bdef' => array('annotation' => array('scanDir' => $SCAN_DIRS), 'xml' => array('filename' => 'beans.xml', 'directories' => array(__DIR__)))), 'cache' => array('proxy' => $CACHE_IMPL, 'bdef' => $CACHE_IMPL, 'beans' => $CACHE_IMPL, 'autoloader' => $CACHE_IMPL, 'aspect' => $CACHE_IMPL, 'annotations' => $CACHE_IMPL)));