Development

Changeset 20471

You must first sign up to be able to contribute.

Changeset 20471

Show
Ignore:
Timestamp:
07/24/09 21:14:22 (4 years ago)
Author:
datoine
Message:

Importing version 0.1.0 for sfPaymentPlugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPaymentPlugin/trunk/config/sfPaymentPluginConfiguration.class.php

    r19692 r20471  
    11<?php 
    22 
     3/** 
     4 * sfPaymentPlugin configuration. 
     5 *  
     6 * @package   sfPaymentPlugin 
     7 * @category  Library 
     8 * @author    Marijn Huizendveld <marijn@round84.com> 
     9 * 
     10 * @version   $Revision$ changed by $Author$ 
     11 */ 
     12class sfPaymentPluginConfiguration extends sfPluginConfiguration 
     13{ 
    314  /** 
    4    * sfPaymentPlugin configuration. 
    5    *  
    6    * @package   sfPaymentPlugin 
    7    * @author    Marijn Huizendveld <marijn@round84.com> 
    8    * 
    9    * @version   $Revision$ changed by $Author$ 
     15   * @see sfPluginConfiguration 
    1016   */ 
    11   class sfPaymentPluginConfiguration extends sfPluginConfiguration 
     17  public function initialize () 
    1218  { 
    13  
    14     /** 
    15      * @see sfPluginConfiguration 
    16      */ 
    17     public function initialize () 
    18     { 
    19     } 
    20  
    2119  } 
     20} 
  • plugins/sfPaymentPlugin/trunk/test/bin/prove.php

    r19692 r20471  
    11<?php 
     2/** 
     3 * sfPaymentPlugin configuration. 
     4 *  
     5 * @package   sfPaymentPlugin 
     6 * @category  Library 
     7 * @author    Marijn Huizendveld <marijn@round84.com> 
     8 * 
     9 * @version   $Revision$ changed by $Author$ 
     10 */ 
    211 
    312include dirname(__FILE__).'/../bootstrap/unit.php'; 
  • plugins/sfPaymentPlugin/trunk/test/bootstrap/functional.php

    r19692 r20471  
    11<?php 
    22 
     3/* 
     4 * This file is part of the symfony package. 
     5 * (c) 2004-2006 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// guess current application 
    312if (!isset($app)) 
    413{ 
    5   $app = 'FrontEnd'; 
     14  $app = 'frontend'; 
    615} 
    716 
    8 require_once $_SERVER['SYMFONY'].'/autoload/sfCoreAutoload.class.php'; 
    9 sfCoreAutoload::register(); 
    10  
    11 function sfPaymentPlugin_cleanup() 
    12 
    13   sfToolkit::clearDirectory(dirname(__FILE__).'/../fixtures/project/cache'); 
    14   sfToolkit::clearDirectory(dirname(__FILE__).'/../fixtures/project/log'); 
    15 
    16 sfPaymentPlugin_cleanup(); 
    17 register_shutdown_function('sfPaymentPlugin_cleanup'); 
    18  
    19 require_once dirname(__FILE__).'/../fixtures/project/config/ProjectConfiguration.class.php'; 
     17// load project configuration for specified $app 
     18require_once dirname(__FILE__).'/../../../../config/ProjectConfiguration.class.php'; 
    2019$configuration = ProjectConfiguration::getApplicationConfiguration($app, 'test', isset($debug) ? $debug : true); 
    2120sfContext::createInstance($configuration); 
     21 
     22// remove all cache 
     23sfToolkit::clearDirectory(sfConfig::get('sf_app_cache_dir')); 
  • plugins/sfPaymentPlugin/trunk/test/bootstrap/unit.php

    r19692 r20471  
    11<?php 
    22 
    3 if (!isset($_SERVER['SYMFONY'])) 
    4 
    5   throw new RuntimeException('Could not find symfony core libraries.'); 
    6 
     3/* 
     4 * This file is part of the symfony package. 
     5 * (c) 2004-2006 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 */ 
    710 
    8 require_once $_SERVER['SYMFONY'].'/autoload/sfCoreAutoload.class.php'; 
    9 sfCoreAutoload::register(); 
    10  
    11 $configuration = new sfProjectConfiguration(dirname(__FILE__).'/../fixtures/project'); 
    12 require_once $configuration->getSymfonyLibDir().'/vendor/lime/lime.php'; 
    13  
    14 function sfPaymentPlugin_autoload_again($class) 
    15 
    16   $autoload = sfSimpleAutoload::getInstance(); 
    17   $autoload->reload(); 
    18   return $autoload->autoload($class); 
    19 
    20 spl_autoload_register('sfPaymentPlugin_autoload_again'); 
    21  
    22 require_once dirname(__FILE__).'/../../config/sfPaymentPluginConfiguration.class.php'; 
    23 $plugin_configuration = new sfPaymentPluginConfiguration($configuration, dirname(__FILE__).'/../..'); 
     11// load project configuration for specified $app 
     12require_once dirname(__FILE__).'/../../../../config/ProjectConfiguration.class.php'; 
     13$configuration = new ProjectConfiguration(); 
     14include($configuration->getSymfonyLibDir().'/vendor/lime/lime.php');