Completed
Push — master ( bd90c3...f3164d )
by Jonathan
9s
created

doc/_static/snippets/context-communication.inc (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
// Snippet to demonstrate context communications.
4
5
  /**
6
   * Gather any contexts needed.
7
   *
8
   * @BeforeScenario
9
   */
10
  public function gatherContexts(BeforeScenarioScope $scope) {
0 ignored issues
show
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_PUBLIC
Loading history...
11
    $environment = $scope->getEnvironment();
12
13
    $this->drupalContext = $environment->getContext('Drupal\DrupalExtension\Context\DrupalContext');
14
    $this->minkContext = $environment->getContext('Drupal\DrupalExtension\Context\MinkContext');
15
  }
16