rename LoadedPluginInformation to ComposerPluginInformation.

This commit is contained in:
meadsteve 2014-02-25 19:33:00 +00:00
parent 1f42741623
commit 6b2d0aebf1
3 changed files with 9 additions and 9 deletions

View file

@ -11,7 +11,7 @@ namespace PHPCI\Controller;
use b8; use b8;
use PHPCI\Model\Build; use PHPCI\Model\Build;
use PHPCI\Plugin\Util\LoadedPluginInformation; use PHPCI\Plugin\Util\ComposerPluginInformation;
/** /**
* Plugin Controller - Provides support for installing Composer packages. * Plugin Controller - Provides support for installing Composer packages.
@ -63,7 +63,7 @@ class PluginController extends \PHPCI\Controller
$this->view->installedPackages = $json['require']; $this->view->installedPackages = $json['require'];
$this->view->suggestedPackages = $json['suggest']; $this->view->suggestedPackages = $json['suggest'];
$pluginInfo = LoadedPluginInformation::buildFromYaml( $pluginInfo = ComposerPluginInformation::buildFromYaml(
PHPCI_DIR . "vendor/composer/installed.json" PHPCI_DIR . "vendor/composer/installed.json"
); );
$this->view->plugins = $pluginInfo->getInstalledPlugins(); $this->view->plugins = $pluginInfo->getInstalledPlugins();

View file

@ -3,7 +3,7 @@
namespace PHPCI\Plugin\Util; namespace PHPCI\Plugin\Util;
class LoadedPluginInformation class ComposerPluginInformation
{ {
/** /**
* @var array * @var array
@ -17,7 +17,7 @@ class LoadedPluginInformation
/** /**
* @param string $filePath The path of installed.json created by composer. * @param string $filePath The path of installed.json created by composer.
* @return LoadedPluginInformation * @return ComposerPluginInformation
*/ */
public static function buildFromYaml($filePath) public static function buildFromYaml($filePath)
{ {

View file

@ -2,18 +2,18 @@
namespace PHPCI\Plugin\Tests\Util; 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 $testedInformation;
protected function setUpFromFile($file) protected function setUpFromFile($file)
{ {
$this->testedInformation = LoadedPluginInformation::buildFromYaml($file); $this->testedInformation = ComposerPluginInformation::buildFromYaml($file);
} }
protected function phpciSetup() protected function phpciSetup()
@ -27,7 +27,7 @@ class LoadedPluginInformationTest extends \PHPUnit_Framework_TestCase
{ {
$this->phpciSetup(); $this->phpciSetup();
$this->assertInstanceOf( $this->assertInstanceOf(
'\PHPCI\Plugin\Util\LoadedPluginInformation', '\PHPCI\Plugin\Util\ComposerPluginInformation',
$this->testedInformation $this->testedInformation
); );
} }