Skip to content

Commit 838ce13

Browse files
committed
Renamed match into matchRegex
1 parent 0f7b837 commit 838ce13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Coduo/PHPMatcher/Parser/ExpanderInitializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class ExpanderInitializer
2626
"greaterThan" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\GreaterThan",
2727
"inArray" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\InArray",
2828
"contains" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\Contains",
29-
"match" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\MatchRegex",
29+
"matchRegex" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\MatchRegex",
3030

3131
"oneOf" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\OneOf"
3232
);

tests/Coduo/PHPMatcher/MatcherTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ public static function expanderExamples()
246246
array(array('foo'), "@[email protected]()", false),
247247
array("lorem ipsum", "@[email protected](contains(\"lorem\"), contains(\"test\"))", true),
248248
array("lorem ipsum", "@[email protected](contains(\"lorem\"), contains(\"test\")).endsWith(\"ipsum\")", true),
249-
array("lorem ipsum", "@string@.match(\"/^lorem \\w+$/\")", true),
250-
array("lorem ipsum", "@string@.match(\"/^foo/\")", false),
249+
array("lorem ipsum", "@string@.matchRegex(\"/^lorem \\w+$/\")", true),
250+
array("lorem ipsum", "@string@.matchRegex(\"/^foo/\")", false),
251251
);
252252
}
253253
}

0 commit comments

Comments
 (0)