// This may throw exceptions
try {
- // Is the class there?
- if (!class_exists($configValue)) {
+ // Is the config entry valid and class is there?
+ if (!is_string($configKey)) {
+ // Is not a string
+ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('configKey=%s has unexpected type "%s". FAILED', $configKey, gettype($configKey)));
+
+ // Skip further tests
+ $failed++;
+ continue;
+ } elseif (!class_exists($configValue)) {
// Class not found
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('Class "%s" not found. FAILED', $configValue));
// Skip further tests
$failed++;
continue;
- } // END - if
+ }
} catch (InvalidArgumentException $e) {
// Maybe not conform?
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('Class "%s" failed to load. Message: "%s"', $configValue, $e->getMessage()));