/**
  * Visits & tests BackgroundNode.
  *
  * @param BackgroundNode   $background
  * @param ScenarioNode     $logicalParent
  * @param ContextInterface $context
  *
  * @see BackgroundTester::visit()
  *
  * @return integer
  */
 protected function visitBackground(BackgroundNode $background, ScenarioNode $logicalParent, ContextInterface $context)
 {
     $tester = $this->container->get('behat.tester.background');
     $tester->setLogicalParent($logicalParent);
     $tester->setContext($context);
     $tester->setSkip($this->moodleskip);
     return $background->accept($tester);
 }
Пример #2
0
 /**
  * Visits & tests BackgroundNode.
  *
  * @param   Behat\Gherkin\Node\BackgroundNode       $background
  * @param   Behat\Behat\Context\ContextInterface    $context
  *
  * @uses    Behat\Behat\Tester\BackgroundTester::visit()
  *
  * @return  integer
  */
 protected function visitBackground(BackgroundNode $background, ContextInterface $context)
 {
     $tester = $this->container->get('behat.tester.background');
     $tester->setContext($context);
     $tester->setDryRun($this->dryRun);
     return $background->accept($tester);
 }
Пример #3
0
 /**
  * Visits & tests BackgroundNode.
  *
  * @param   Behat\Gherkin\Node\BackgroundNode               $background
  * @param   Behat\Behat\Environment\EnvironmentInterface    $environment
  *
  * @uses    Behat\Behat\Tester\BackgroundTester::visit()
  *
  * @return  integer
  */
 protected function visitBackground(BackgroundNode $background, EnvironmentInterface $environment)
 {
     $tester = $this->container->get('behat.tester.background');
     $tester->setEnvironment($environment);
     return $background->accept($tester);
 }