protected function NamedSelector::registerReplacement in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/Selector/NamedSelector.php \Behat\Mink\Selector\NamedSelector::registerReplacement()
Registers a replacement in the list of replacements.
This method must be called in the constructor before calling the parent constructor.
Parameters
string $from:
string $to:
2 calls to NamedSelector::registerReplacement()
- 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 239
Class
- NamedSelector
- Named selectors engine. Uses registered XPath selectors to create new expressions.
Namespace
Behat\Mink\SelectorCode
protected function registerReplacement($from, $to) {
$this->replacements[$from] = $to;
}