createMock('LmcRbacMvc\Role\RoleProviderInterface'); $pluginManager = new RoleProviderPluginManager(new ServiceManager()); $this->assertNull($pluginManager->validatePlugin($pluginMock)); } public function testValidationOfPluginFailsIfRoleProviderInterfaceIsNotImplemented() { $this->expectException('LmcRbacMvc\Exception\RuntimeException'); $pluginManager = new RoleProviderPluginManager(new ServiceManager()); $pluginManager->get('stdClass', []); } }