| 1 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/*
|
|
|
4 |
* This file is part of the symfony package.
|
|
|
5 |
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
|
6 |
*
|
|
|
7 |
* For the full copyright and license information, please view the LICENSE
|
|
|
8 |
* file that was distributed with this source code.
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
$_test_dir = realpath(dirname(__FILE__).'/..');
|
|
|
12 |
|
|
|
13 |
// configuration
|
|
|
14 |
require_once dirname(__FILE__).'/../../config/ProjectConfiguration.class.php';
|
|
|
15 |
$configuration = ProjectConfiguration::hasActive() ? ProjectConfiguration::getActive() : new ProjectConfiguration(realpath($_test_dir.'/..'));
|
|
|
16 |
|
|
|
17 |
// autoloader
|
|
|
18 |
$autoload = sfSimpleAutoload::getInstance(sfConfig::get('sf_cache_dir').'/project_autoload.cache');
|
|
|
19 |
$autoload->loadConfiguration(sfFinder::type('file')->name('autoload.yml')->in(array(
|
|
|
20 |
sfConfig::get('sf_symfony_lib_dir').'/config/config',
|
|
|
21 |
sfConfig::get('sf_config_dir'),
|
|
|
22 |
)));
|
|
|
23 |
$autoload->register();
|
|
|
24 |
|
|
|
25 |
// lime
|
|
|
26 |
include $configuration->getSymfonyLibDir().'/vendor/lime/lime.php';
|