From 356a2293a1bb0e6985a3c3379595f1f4d6bf7632 Mon Sep 17 00:00:00 2001 From: meadsteve Date: Fri, 13 Dec 2013 16:10:54 +0000 Subject: [PATCH] move logging related classes to appropriate namespace. --- PHPCI/Command/RunCommand.php | 6 +++--- PHPCI/{Helper => Logging}/BuildDBLogHandler.php | 2 +- PHPCI/{Helper => Logging}/LoggedBuildContextTidier.php | 2 +- PHPCI/{Helper => Logging}/LoggerConfig.php | 2 +- PHPCI/{Helper => Logging}/OutputLogHandler.php | 2 +- PHPCI/Plugin/Util/Executor.php | 4 ++-- Tests/PHPCI/Helper/CommandExecutorTest.php | 2 +- Tests/PHPCI/Helper/LoggerConfigTest.php | 2 +- console | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) rename PHPCI/{Helper => Logging}/BuildDBLogHandler.php (96%) rename PHPCI/{Helper => Logging}/LoggedBuildContextTidier.php (96%) rename PHPCI/{Helper => Logging}/LoggerConfig.php (98%) rename PHPCI/{Helper => Logging}/OutputLogHandler.php (95%) diff --git a/PHPCI/Command/RunCommand.php b/PHPCI/Command/RunCommand.php index d635b8a2..d95455ce 100644 --- a/PHPCI/Command/RunCommand.php +++ b/PHPCI/Command/RunCommand.php @@ -10,9 +10,9 @@ namespace PHPCI\Command; use Monolog\Logger; -use PHPCI\Helper\BuildDBLogHandler; -use PHPCI\Helper\LoggedBuildContextTidier; -use PHPCI\Helper\OutputLogHandler; +use PHPCI\Logging\BuildDBLogHandler; +use PHPCI\Logging\LoggedBuildContextTidier; +use PHPCI\Logging\OutputLogHandler; use Psr\Log\LoggerAwareInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; diff --git a/PHPCI/Helper/BuildDBLogHandler.php b/PHPCI/Logging/BuildDBLogHandler.php similarity index 96% rename from PHPCI/Helper/BuildDBLogHandler.php rename to PHPCI/Logging/BuildDBLogHandler.php index 6ae34379..60cf48d3 100644 --- a/PHPCI/Helper/BuildDBLogHandler.php +++ b/PHPCI/Logging/BuildDBLogHandler.php @@ -1,6 +1,6 @@ pluginFactory = $pluginFactory; $this->logger = $logger; diff --git a/Tests/PHPCI/Helper/CommandExecutorTest.php b/Tests/PHPCI/Helper/CommandExecutorTest.php index f394c9f9..047f4258 100644 --- a/Tests/PHPCI/Helper/CommandExecutorTest.php +++ b/Tests/PHPCI/Helper/CommandExecutorTest.php @@ -15,7 +15,7 @@ class CommandExecutorTest extends ProphecyTestCase protected function setUp() { parent::setUp(); - $mockBuildLogger = $this->prophesize('\PHPCI\Logging\BuildLogger'); + $mockBuildLogger = $this->prophesize('PHPCI\Logging\BuildLogger'); $this->testedExecutor = new CommandExecutor($mockBuildLogger->reveal(), __DIR__ . "/"); } diff --git a/Tests/PHPCI/Helper/LoggerConfigTest.php b/Tests/PHPCI/Helper/LoggerConfigTest.php index 95ea3d62..e19fb736 100644 --- a/Tests/PHPCI/Helper/LoggerConfigTest.php +++ b/Tests/PHPCI/Helper/LoggerConfigTest.php @@ -1,6 +1,6 @@