Behat\Testwork\ServiceContainer\Configuration\ConfigurationLoader::debugInformation PHP Method

debugInformation() public method

Returns array with configuration debug information.
public debugInformation ( ) : array
return array
    public function debugInformation()
    {
        return $this->debugInformation;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $output->writeln(sprintf('%s version %s', $this->application->getName(), $this->application->getVersion()));
     $output->writeln('');
     $debug = $this->configurationLoader->debugInformation();
     $output->writeln('--- configuration');
     $output->writeln(sprintf('    environment variable (%s): %s', $debug['environment_variable_name'], $debug['environment_variable_content']));
     $output->writeln(sprintf('    configuration file: %s', $debug['configuration_file_path']));
     $output->writeln('');
     $debug = $this->extensionManager->debugInformation();
     $output->writeln('--- extensions');
     $output->writeln(sprintf('    extensions loaded: %s', count($debug['extensions_list']) ? implode(', ', $debug['extensions_list']) : 'none'));
     $output->writeln('');
 }