To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

root/plugins/apostropheBlogPlugin/trunk/test/fixtures/project/test/bootstrap/unit.php @ 121

Revision 121, 0.9 KB (checked in by dordille, 3 years ago)

apostropheBlogPlugin new version.

Line 
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
14require_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
26include $configuration->getSymfonyLibDir().'/vendor/lime/lime.php';
Note: See TracBrowser for help on using the browser.