PHP code example of behat / environment-loader
1. Go to this page and download the library: Download behat/environment-loader 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/ */
behat / environment-loader example snippets
namespace Behat\ExampleExtension\ServiceContainer;
// ...
class ExampleExtension implements Extension
{
// ...
/**
* {@inheritdoc}
*/
public function load(ContainerBuilder $container, array $config)
{
// Load all context classes from "Behat\ExampleExtension\Context\*" namespace.
$loader = new EnvironmentLoader($this, $container, $config);
// Your own environment reader can be easily added.
// $loader->addEnvironmentReader();
$loader->load();
}
// ...
}