private function checkForMissingDependencies($moduleName, DependsOnModule $module)
    {
        $dependencies = $this->getModuleDependencies($module);
        $configuredDependenciesCount = count($this->getConfiguredDependencies($moduleName));

        if ($configuredDependenciesCount < count($dependencies)) {
            $missingDependency = array_keys($dependencies)[$configuredDependenciesCount];

            $message = sprintf(
                "\nThis module depends on %s\n\n\n%s",
                $missingDependency,
                $this->getErrorMessageForDependency($module, $missingDependency)
            );

            throw new ModuleRequireException($moduleName, $message);
        }
    }
private function checkForMissingDependencies($moduleName, DependsOnModule $module)
    {
        $dependencies = $this->getModuleDependencies($module);
        $configuredDependenciesCount = count($this->getConfiguredDependencies($moduleName));

        if ($configuredDependenciesCount < count($dependencies)) {
            $missingDependency = array_keys($dependencies)[$configuredDependenciesCount];

            $message = sprintf(
                "\nThis module depends on %s\n\n\n%s",
                $missingDependency,
                $this->getErrorMessageForDependency($module, $missingDependency)
            );

            throw new ModuleRequireException($moduleName, $message);
        }
    }
private function checkForMissingDependencies ( $ moduleName , DependsOnModule $ module ) { $ dependencies = $ this -> getModuleDependencies ( $ module ) ; $ configuredDependenciesCount = count ( $ this -> getConfiguredDependencies ( $ moduleName ) ) ; if ( $ configuredDependenciesCount < count ( $ dependencies ) ) { $ missingDependency = array_keys ( $ dependencies ) [ $ configuredDependenciesCount ] ; $ message = sprintf ( "\nThis module depends on %s\n\n\n%s" , $ missingDependency , $ this -> getErrorMessageForDependency ( $ module , $ missingDependency ) ) ; throw new ModuleRequireException ( $ moduleName , $ message ) ; } }
Check for missing dependencies.

@param string $moduleName
@param \Codeception\Lib\Interfaces\DependsOnModule $module
@throws \Codeception\Exception\ModuleException
@throws \Codeception\Exception\ModuleRequireException
Check for missing dependencies .