コード例 #1
0
 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));
 }