PHP code example of zayon / behat-gather-context-extension

1. Go to this page and download the library: Download zayon/behat-gather-context-extension library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zayon / behat-gather-context-extension example snippets



# tests/Behat/DemoContext.php

namespace Acme\Tests\Behat;

use Behat\Behat\Context\Context;

final class DemoContext implements Context
{
    // a beforeScenario hook will automatically be created to gather AnotherContext
    private AnotherContext $anotherContext;
}