You are here

public function NamedSelectorTest::testEscapedSelectors in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/tests/Selector/NamedSelectorTest.php \Behat\Mink\Tests\Selector\NamedSelectorTest::testEscapedSelectors()

@dataProvider getSelectorTests @group legacy

File

vendor/behat/mink/tests/Selector/NamedSelectorTest.php, line 59

Class

NamedSelectorTest

Namespace

Behat\Mink\Tests\Selector

Code

public function testEscapedSelectors($fixtureFile, $selector, $locator, $expectedExactCount, $expectedPartialCount = null) {

  // Escape the locator as Mink 1.x expects the caller of the NamedSelector to handle it
  $escaper = new Escaper();
  $locator = $escaper
    ->escapeLiteral($locator);
  $this
    ->testSelectors($fixtureFile, $selector, $locator, $expectedExactCount, $expectedPartialCount);
}