You are here

public function NamedSelector::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/src/Selector/NamedSelector.php \Behat\Mink\Selector\NamedSelector::__construct()

Creates selector instance.

2 calls to NamedSelector::__construct()
ExactNamedSelector::__construct in vendor/behat/mink/src/Selector/ExactNamedSelector.php
Creates selector instance.
PartialNamedSelector::__construct in vendor/behat/mink/src/Selector/PartialNamedSelector.php
Creates selector instance.
2 methods override NamedSelector::__construct()
ExactNamedSelector::__construct in vendor/behat/mink/src/Selector/ExactNamedSelector.php
Creates selector instance.
PartialNamedSelector::__construct in vendor/behat/mink/src/Selector/PartialNamedSelector.php
Creates selector instance.

File

vendor/behat/mink/src/Selector/NamedSelector.php, line 167

Class

NamedSelector
Named selectors engine. Uses registered XPath selectors to create new expressions.

Namespace

Behat\Mink\Selector

Code

public function __construct() {
  $this->xpathEscaper = new Escaper();
  foreach ($this->replacements as $from => $to) {
    $this->replacements[$from] = strtr($to, $this->replacements);
  }
  foreach ($this->selectors as $alias => $selector) {
    $this->selectors[$alias] = strtr($selector, $this->replacements);
  }
}