You are here

public function EscaperTest::testXpathLiteral in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/tests/Selector/Xpath/EscaperTest.php \Behat\Mink\Tests\Selector\Xpath\EscaperTest::testXpathLiteral()

@dataProvider getXpathLiterals

File

vendor/behat/mink/tests/Selector/Xpath/EscaperTest.php, line 12

Class

EscaperTest

Namespace

Behat\Mink\Tests\Selector\Xpath

Code

public function testXpathLiteral($string, $expected) {
  $escaper = new Escaper();
  $this
    ->assertEquals($expected, $escaper
    ->escapeLiteral($string));
}