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