public function testModuleResolverListenerCanResolveModuleClasses() { $moduleResolver = new ModuleResolverListener(); $e = new ModuleEvent(); $e->setModuleName('ListenerTestModule'); $this->assertInstanceOf('ListenerTestModule\\Module', $moduleResolver($e)); $e->setModuleName('DoesNotExist'); $this->assertFalse($moduleResolver($e)); }