Ignore:
Timestamp:
Aug 22, 2010, 5:10:20 PM (11 years ago)
Author:
popeye
Message:

changements dûs à la 1.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/test/bootstrap/unit.php

    r2 r1265  
    33/*
    44 * This file is part of the symfony package.
    5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
     5 * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
    66 *
    77 * For the full copyright and license information, please view the LICENSE
     
    1111$_test_dir = realpath(dirname(__FILE__).'/..');
    1212
    13 require_once(dirname(__FILE__).'/../../config/ProjectConfiguration.class.php');
    14 $configuration = new ProjectConfiguration(realpath($_test_dir.'/..'));
    15 include($configuration->getSymfonyLibDir().'/vendor/lime/lime.php');
     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 TracChangeset for help on using the changeset viewer.