From a1df64f4aee40ae55027402ce783fbec87635166 Mon Sep 17 00:00:00 2001 From: Toon Verwerft Date: Fri, 18 Jan 2019 06:39:08 +0100 Subject: [PATCH] Fixes #36 Update module --- src/Module.php | 19 +------------------ test/src/Tests/ModuleTest.php | 11 ----------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/src/Module.php b/src/Module.php index 27bf196..f4b2d40 100644 --- a/src/Module.php +++ b/src/Module.php @@ -2,28 +2,11 @@ namespace Phpro\DoctrineHydrationModule; -use Zend\ModuleManager\Feature\AutoloaderProviderInterface; -use Zend\ModuleManager\Feature\ConfigProviderInterface; - -class Module implements AutoloaderProviderInterface, ConfigProviderInterface +class Module { /** * @return array */ - public function getAutoloaderConfig() - { - return array( - 'Zend\Loader\StandardAutoloader' => array( - 'namespaces' => array( - __NAMESPACE__ => __DIR__, - ), - ), - ); - } - - /** - * @return array|mixed|\Traversable - */ public function getConfig() { return include __DIR__.'/../config/module.config.php'; diff --git a/test/src/Tests/ModuleTest.php b/test/src/Tests/ModuleTest.php index 13d5dd2..9b2320c 100644 --- a/test/src/Tests/ModuleTest.php +++ b/test/src/Tests/ModuleTest.php @@ -19,23 +19,12 @@ public function it_should_be_initializable() $this->assertInstanceOf('Phpro\DoctrineHydrationModule\Module', $module); } - /** - * @test - */ - public function it_should_provide_autoloader_configuration() - { - $module = new Module(); - $this->assertInstanceOf('Zend\ModuleManager\Feature\AutoloaderProviderInterface', $module); - $this->assertInternalType('array', $module->getAutoloaderConfig()); - } - /** * @test */ public function it_should_provide_configuration() { $module = new Module(); - $this->assertInstanceOf('Zend\ModuleManager\Feature\ConfigProviderInterface', $module); $this->assertInternalType('array', $module->getConfig()); } }