for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Sergii Bondarenko, <[email protected]>
*/
namespace Drupal\TqExtension\Context;
use Behat\Behat\Context as Behat;
class TqContextInitializer implements Behat\Initializer\ContextInitializer
{
* Parameters of TqExtension.
*
* @var array
private $parameters = [];
* @param array $parameters
* @param string $namespace
* @param string $path
public function __construct(array $parameters, $namespace, $path)
$path
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$parameters['namespace'] = $namespace;
$this->parameters = $parameters;
}
* {@inheritdoc}
public function initializeContext(Behat\Context $context)
if ($context instanceof TqContextInterface) {
$context->setTqParameters($this->parameters);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.