Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Fixes #36 Update module
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Jan 18, 2019
1 parent 8cb3c1d commit a1df64f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
19 changes: 1 addition & 18 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
11 changes: 0 additions & 11 deletions test/src/Tests/ModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit a1df64f

Please sign in to comment.