$cfg->setConfigEntry('email_validator_filter_class', 'EmailValidatorFilter');
// CFG: USERNAME-VALIDATOR-FILTER-CLASS
-$cfg->setConfigEntry('username_validator_filter_class', 'UserNameValidatorFilter');
+$cfg->setConfigEntry('username_validator_filter_class', 'CoreFramework\Filter\Validator\Username\UserNameValidatorFilter');
// CFG: USERNAME-IS-GUEST-FILTER-CLASS
-$cfg->setConfigEntry('username_is_guest_filter_class', 'UserNameIsGuestFilter');
+$cfg->setConfigEntry('username_is_guest_filter_class', 'CoreFramework\Filter\User\Username\UserNameIsGuestFilter');
// CFG: PASSWORD-VALIDATOR-FILTER-CLASS
$cfg->setConfigEntry('password_validator_filter_class', 'PasswordValidatorFilter');
$cfg->setConfigEntry('rules_accepted_filter_class', 'RulesAcceptedFilter');
// CFG: USERNAME-VERIFIER-FILTER-CLASS
-$cfg->setConfigEntry('username_verifier_filter_class', 'UserNameVerifierFilter');
+$cfg->setConfigEntry('username_verifier_filter_class', 'CoreFramework\Filter\Verifier\User\UserNameVerifierFilter');
// CFG: USER-GUEST-VERIFIER-FILTER-CLASS
-$cfg->setConfigEntry('user_guest_verifier_filter_class', 'UserGuestVerifierFilter');
+$cfg->setConfigEntry('user_guest_verifier_filter_class', 'CoreFramework\Filter\Verifier\User\UserGuestVerifierFilter');
// CFG: EMAIL-VERIFIER-FILTER-CLASS
$cfg->setConfigEntry('email_verifier_filter_class', 'EmailVerifierFilter');
$cfg->setConfigEntry('account_password_filter_class', 'AccountPasswordVerifierFilter');
// CFG: USER-STATUS-FILTER-CLASS
-$cfg->setConfigEntry('user_status_filter_class', 'UserStatusVerifierFilter');
+$cfg->setConfigEntry('user_status_filter_class', 'CoreFramework\Filter\Verifier\User\UserStatusVerifierFilter');
// CFG: USER-UNCONFIRMED-FILTER-CLASS
-$cfg->setConfigEntry('user_unconfirmed_filter_class', 'UserUnconfirmedVerifierFilter');
+$cfg->setConfigEntry('user_unconfirmed_filter_class', 'CoreFramework\Filter\Verifier\User\UserUnconfirmedVerifierFilter');
// CFG: CRYPTO-CLASS
$cfg->setConfigEntry('crypto_class', 'CryptoHelper');
* @todo 0% done
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ // Init counter
+ $passed = 0;
+ $failed = 0;
+
// Loop through all configuration keys
foreach ($this->getConfigInstance()->getConfigurationArray() as $configKey => $configValue) {
// Key must end with _class
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('Class "%s" not found. FAILED', $configValue));
// Skip further tests
+ $failed++;
continue;
} // END - if
} catch (InvalidArgumentException $e) {
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('Class "%s" failed to load. Message: "%s"', $configValue, $e->getMessage()));
// Skip further tests
+ $failed++;
continue;
}
// class_exists() didn't fail
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('Class "%s" loaded successfully. OKAY', $configValue));
+ $passed++;
} // END - foreach
+ // Output result
+ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('Test result: %d okay, %d failed (%0.02f%% passed)', $passed, $failed, ($passed / ($passed + $failed))));
+
// Implement this!
$this->partialStub('Please implement this method.');
}