config = null; if (file_exists($path)) { $this->config = include($path); } if (!$this->shouldRunConfig($this->config)) { $this->markTestSkipped(__CLASS__ . ' Backend not configured'); return false; } return true; } protected function shouldRunConfig(mixed $config): bool { return is_array($config) && ($config['run'] ?? false); } }