Development

Changeset 6218

You must first sign up to be able to contribute.

Changeset 6218

Show
Ignore:
Timestamp:
11/30/07 01:14:30 (2 years ago)
Author:
dwhittle
Message:

dwhittle: fixed pear/plugin tests when preferred state is not stable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/unit/plugin/sfPearEnvironmentTest.php

    r5250 r6218  
    44 * This file is part of the symfony package. 
    55 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 
    6  *  
     6 * 
    77 * For the full copyright and license information, please view the LICENSE 
    88 * file that was distributed with this source code. 
     
    2828  'plugin_dir'            => $temp.'/plugins', 
    2929  'cache_dir'             => $temp.'/cache', 
     30  'preferred_state'       => 'stable', 
    3031  'rest_base_class'       => 'sfPearRestTest', 
    3132  'downloader_base_class' => 'sfPearDownloaderTest', 
  • trunk/test/unit/plugin/sfPearRestPluginTest.php

    r5250 r6218  
    44 * This file is part of the symfony package. 
    55 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 
    6  *  
     6 * 
    77 * For the full copyright and license information, please view the LICENSE 
    88 * file that was distributed with this source code. 
     
    1616require_once dirname(__FILE__).'/sfPluginTestHelper.class.php'; 
    1717 
    18 $t = new lime_test(4, new lime_output_color()); 
     18$t = new lime_test(5, new lime_output_color()); 
    1919 
    2020// setup 
     
    2828  'plugin_dir'            => $temp.'/plugins', 
    2929  'cache_dir'             => $temp.'/cache', 
     30  'preferred_state'       => 'stable', 
    3031  'rest_base_class'       => 'sfPearRestTest', 
    3132  'downloader_base_class' => 'sfPearDownloaderTest', 
     
    4041// ->getPluginVersions() 
    4142$t->diag('->getPluginVersions()'); 
    42 $t->is($rest->getPluginVersions('sfTestPlugin'), array('1.1.3', '1.0.3', '1.0.0'), '->getPluginVersions() return an array of versions for a plugin'); 
    43 $t->is($rest->getPluginVersions('sfTestPlugin', 'beta'), array('1.0.4', '1.1.4', '1.1.3', '1.0.3', '1.0.0'), '->getPluginVersions() return an array of versions for a plugin'); 
     43$t->is($rest->getPluginVersions('sfTestPlugin'), array('1.1.3', '1.0.3', '1.0.0'), '->getPluginVersions() returns an array of stable versions for a plugin'); 
     44$t->is($rest->getPluginVersions('sfTestPlugin', 'stable'), array('1.1.3', '1.0.3', '1.0.0'), '->getPluginVersions() accepts stability as a second parameter and returns an array of versions for a plugin based on stability'); 
     45$t->is($rest->getPluginVersions('sfTestPlugin', 'beta'), array('1.0.4', '1.1.4', '1.1.3', '1.0.3', '1.0.0'), '->getPluginVersions() accepts stability as a second parameter and returns an array of versions for a plugin based on stability cascade (beta includes stable)'); 
    4446 
    4547// ->getPluginDependencies() 
    4648$t->diag('->getPluginDependencies()'); 
    4749$dependencies = $rest->getPluginDependencies('sfTestPlugin', '1.1.4'); 
    48 $t->is($dependencies['required']['package']['min'], '1.1.0', '->getPluginDependencies() return an array of dependencies'); 
     50$t->is($dependencies['required']['package']['min'], '1.1.0', '->getPluginDependencies() returns an array of dependencies'); 
    4951 
    5052// ->getPluginDownloadURL() 
  • trunk/test/unit/plugin/sfPluginManagerTest.php

    r5250 r6218  
    44 * This file is part of the symfony package. 
    55 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 
    6  *  
     6 * 
    77 * For the full copyright and license information, please view the LICENSE 
    88 * file that was distributed with this source code. 
     
    2828  'plugin_dir'            => $temp.'/plugins', 
    2929  'cache_dir'             => $temp.'/cache', 
     30  'preferred_state'       => 'stable', 
    3031  'rest_base_class'       => 'sfPearRestTest', 
    3132  'downloader_base_class' => 'sfPearDownloaderTest', 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.