Changeset 6218
- Timestamp:
- 11/30/07 01:14:30 (2 years ago)
- Files:
-
- trunk/test/unit/plugin/sfPearEnvironmentTest.php (modified) (2 diffs)
- trunk/test/unit/plugin/sfPearRestPluginTest.php (modified) (4 diffs)
- trunk/test/unit/plugin/sfPluginManagerTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/unit/plugin/sfPearEnvironmentTest.php
r5250 r6218 4 4 * This file is part of the symfony package. 5 5 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 6 * 7 7 * For the full copyright and license information, please view the LICENSE 8 8 * file that was distributed with this source code. … … 28 28 'plugin_dir' => $temp.'/plugins', 29 29 'cache_dir' => $temp.'/cache', 30 'preferred_state' => 'stable', 30 31 'rest_base_class' => 'sfPearRestTest', 31 32 'downloader_base_class' => 'sfPearDownloaderTest', trunk/test/unit/plugin/sfPearRestPluginTest.php
r5250 r6218 4 4 * This file is part of the symfony package. 5 5 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 6 * 7 7 * For the full copyright and license information, please view the LICENSE 8 8 * file that was distributed with this source code. … … 16 16 require_once dirname(__FILE__).'/sfPluginTestHelper.class.php'; 17 17 18 $t = new lime_test( 4, new lime_output_color());18 $t = new lime_test(5, new lime_output_color()); 19 19 20 20 // setup … … 28 28 'plugin_dir' => $temp.'/plugins', 29 29 'cache_dir' => $temp.'/cache', 30 'preferred_state' => 'stable', 30 31 'rest_base_class' => 'sfPearRestTest', 31 32 'downloader_base_class' => 'sfPearDownloaderTest', … … 40 41 // ->getPluginVersions() 41 42 $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)'); 44 46 45 47 // ->getPluginDependencies() 46 48 $t->diag('->getPluginDependencies()'); 47 49 $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'); 49 51 50 52 // ->getPluginDownloadURL() trunk/test/unit/plugin/sfPluginManagerTest.php
r5250 r6218 4 4 * This file is part of the symfony package. 5 5 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 6 * 7 7 * For the full copyright and license information, please view the LICENSE 8 8 * file that was distributed with this source code. … … 28 28 'plugin_dir' => $temp.'/plugins', 29 29 'cache_dir' => $temp.'/cache', 30 'preferred_state' => 'stable', 30 31 'rest_base_class' => 'sfPearRestTest', 31 32 'downloader_base_class' => 'sfPearDownloaderTest',

