From 6b2d0aebf1d2ec7012b5c6d51e2fbca9ce1ac152 Mon Sep 17 00:00:00 2001 From: meadsteve Date: Tue, 25 Feb 2014 19:33:00 +0000 Subject: [PATCH] rename LoadedPluginInformation to ComposerPluginInformation. --- PHPCI/Controller/PluginController.php | 4 ++-- ...inInformation.php => ComposerPluginInformation.php} | 4 ++-- ...ationTest.php => ComposerPluginInformationTest.php} | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) rename PHPCI/Plugin/Util/{LoadedPluginInformation.php => ComposerPluginInformation.php} (97%) rename Tests/PHPCI/Plugin/Util/{LoadedPluginInformationTest.php => ComposerPluginInformationTest.php} (77%) diff --git a/PHPCI/Controller/PluginController.php b/PHPCI/Controller/PluginController.php index c0654a7d..ad445431 100644 --- a/PHPCI/Controller/PluginController.php +++ b/PHPCI/Controller/PluginController.php @@ -11,7 +11,7 @@ namespace PHPCI\Controller; use b8; use PHPCI\Model\Build; -use PHPCI\Plugin\Util\LoadedPluginInformation; +use PHPCI\Plugin\Util\ComposerPluginInformation; /** * Plugin Controller - Provides support for installing Composer packages. @@ -63,7 +63,7 @@ class PluginController extends \PHPCI\Controller $this->view->installedPackages = $json['require']; $this->view->suggestedPackages = $json['suggest']; - $pluginInfo = LoadedPluginInformation::buildFromYaml( + $pluginInfo = ComposerPluginInformation::buildFromYaml( PHPCI_DIR . "vendor/composer/installed.json" ); $this->view->plugins = $pluginInfo->getInstalledPlugins(); diff --git a/PHPCI/Plugin/Util/LoadedPluginInformation.php b/PHPCI/Plugin/Util/ComposerPluginInformation.php similarity index 97% rename from PHPCI/Plugin/Util/LoadedPluginInformation.php rename to PHPCI/Plugin/Util/ComposerPluginInformation.php index 89107129..dd69a932 100644 --- a/PHPCI/Plugin/Util/LoadedPluginInformation.php +++ b/PHPCI/Plugin/Util/ComposerPluginInformation.php @@ -3,7 +3,7 @@ namespace PHPCI\Plugin\Util; -class LoadedPluginInformation +class ComposerPluginInformation { /** * @var array @@ -17,7 +17,7 @@ class LoadedPluginInformation /** * @param string $filePath The path of installed.json created by composer. - * @return LoadedPluginInformation + * @return ComposerPluginInformation */ public static function buildFromYaml($filePath) { diff --git a/Tests/PHPCI/Plugin/Util/LoadedPluginInformationTest.php b/Tests/PHPCI/Plugin/Util/ComposerPluginInformationTest.php similarity index 77% rename from Tests/PHPCI/Plugin/Util/LoadedPluginInformationTest.php rename to Tests/PHPCI/Plugin/Util/ComposerPluginInformationTest.php index a5c6c02f..113c1087 100644 --- a/Tests/PHPCI/Plugin/Util/LoadedPluginInformationTest.php +++ b/Tests/PHPCI/Plugin/Util/ComposerPluginInformationTest.php @@ -2,18 +2,18 @@ namespace PHPCI\Plugin\Tests\Util; -use PHPCI\Plugin\Util\LoadedPluginInformation; +use PHPCI\Plugin\Util\ComposerPluginInformation; -class LoadedPluginInformationTest extends \PHPUnit_Framework_TestCase +class ComposerPluginInformationTest extends \PHPUnit_Framework_TestCase { /** - * @var LoadedPluginInformation + * @var ComposerPluginInformation */ protected $testedInformation; protected function setUpFromFile($file) { - $this->testedInformation = LoadedPluginInformation::buildFromYaml($file); + $this->testedInformation = ComposerPluginInformation::buildFromYaml($file); } protected function phpciSetup() @@ -27,7 +27,7 @@ class LoadedPluginInformationTest extends \PHPUnit_Framework_TestCase { $this->phpciSetup(); $this->assertInstanceOf( - '\PHPCI\Plugin\Util\LoadedPluginInformation', + '\PHPCI\Plugin\Util\ComposerPluginInformation', $this->testedInformation ); }