8 use \Magento\Framework\Config\Dom\NodePathMatcher;
31 $actualResult = $this->_model->match(
$pathPattern, $xpathSubject);
32 $this->assertSame($expectedResult, $actualResult);
41 'no match' => [
'/root/node',
'/root',
false],
42 'partial match' => [
'/root/node',
'/wrapper/root/node',
false],
43 'exact match' => [
'/root/node',
'/root/node',
true],
44 'regexp match' => [
'/root/node/(sub-)+node',
'/root/node/sub-node',
true],
45 'match with namespace' => [
'/root/node',
'/mage:root/node',
true],
46 'match with predicate' => [
'/root/node',
'/root/node[@name="test"]',
true]
getNodeInfoDataProvider()
testMatch($pathPattern, $xpathSubject, $expectedResult)