From 2814d86a08615c24a7a7b9846911ce634afda697 Mon Sep 17 00:00:00 2001 From: Alexander Miertsch Date: Sun, 26 Jul 2015 01:03:09 +0200 Subject: [PATCH] Remove no longer required dependencies - Closes #7 --- composer.json | 6 +- tests/Mock/ServiceInitializerMock.php | 30 ------- tests/Mock/ZF2LoggerMock.php | 114 -------------------------- 3 files changed, 1 insertion(+), 149 deletions(-) delete mode 100644 tests/Mock/ServiceInitializerMock.php delete mode 100644 tests/Mock/ZF2LoggerMock.php diff --git a/composer.json b/composer.json index 39628f9..7b20f5e 100644 --- a/composer.json +++ b/composer.json @@ -10,11 +10,6 @@ "license": "BSD-3-Clause", "require": { "php": ">=5.5", - "zendframework/zend-stdlib" : "~2.3", - "zendframework/zend-servicemanager" : "~2.3", - "zendframework/zend-eventmanager" : "~2.3", - "zendframework/zend-log" : "~2.3", - "psr/log": "~1.0", "ramsey/uuid" : "~2.7", "beberlei/assert": "~2.0" }, @@ -23,6 +18,7 @@ "satooshi/php-coveralls": "dev-master" }, "suggest": { + }, "autoload": { "psr-4": { diff --git a/tests/Mock/ServiceInitializerMock.php b/tests/Mock/ServiceInitializerMock.php deleted file mode 100644 index 6ccfbb0..0000000 --- a/tests/Mock/ServiceInitializerMock.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - * - * Date: 5/9/15 - 10:06 PM - */ -namespace ProophTest\Common\Mock; - - -use Prooph\Common\ServiceLocator\ServiceInitializer; -use Prooph\Common\ServiceLocator\ServiceLocator; - -final class ServiceInitializerMock implements ServiceInitializer -{ - - /** - * @param mixed $service - * @param ServiceLocator $serviceLocator - */ - public function initialize($service, ServiceLocator $serviceLocator) - { - if ($service instanceof \stdClass) { - $service->locator = $serviceLocator; - } - } -} \ No newline at end of file diff --git a/tests/Mock/ZF2LoggerMock.php b/tests/Mock/ZF2LoggerMock.php deleted file mode 100644 index b2d777f..0000000 --- a/tests/Mock/ZF2LoggerMock.php +++ /dev/null @@ -1,114 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - * - * Date: 4/30/15 - 7:10 PM - */ -namespace ProophTest\Common\Mock; - - -use Traversable; -use Zend\Log\LoggerInterface; - -final class ZF2LoggerMock implements LoggerInterface -{ - public $loggedEmerg; - - public $loggedAlert; - - public $loggedCrit; - - public $loggedErr; - - public $loggedWarn; - - public $loggedNotice; - - public $loggedInfo; - - public $loggedDebug; - - /** - * @param string $message - * @param array|Traversable $extra - * @return LoggerInterface - */ - public function emerg($message, $extra = array()) - { - $this->loggedEmerg = [$message => $extra]; - } - - /** - * @param string $message - * @param array|Traversable $extra - * @return LoggerInterface - */ - public function alert($message, $extra = array()) - { - $this->loggedAlert = [$message => $extra]; - } - - /** - * @param string $message - * @param array|Traversable $extra - * @return LoggerInterface - */ - public function crit($message, $extra = array()) - { - $this->loggedCrit = [$message => $extra]; - } - - /** - * @param string $message - * @param array|Traversable $extra - * @return LoggerInterface - */ - public function err($message, $extra = array()) - { - $this->loggedErr = [$message => $extra]; - } - - /** - * @param string $message - * @param array|Traversable $extra - * @return LoggerInterface - */ - public function warn($message, $extra = array()) - { - $this->loggedWarn = [$message => $extra]; - } - - /** - * @param string $message - * @param array|Traversable $extra - * @return LoggerInterface - */ - public function notice($message, $extra = array()) - { - $this->loggedNotice = [$message => $extra]; - } - - /** - * @param string $message - * @param array|Traversable $extra - * @return LoggerInterface - */ - public function info($message, $extra = array()) - { - $this->loggedInfo = [$message => $extra]; - } - - /** - * @param string $message - * @param array|Traversable $extra - * @return LoggerInterface - */ - public function debug($message, $extra = array()) - { - $this->loggedDebug = [$message => $extra]; - } -} \ No newline at end of file