Skip to content

Commit

Permalink
fixup! Impl. Expression Language Injections for PHP (tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwojs committed Sep 18, 2021
1 parent 5d0e72d commit 14afd15
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@ public void testExpressionLanguageLanguageInjections() {
LANGUAGE_ID_EXPRESSION_LANGUAGE
);

assertInjectedLangAtCaret(
"<?php\n" +
"\n" +
"use Symfony\\Component\\Validator\\Constraints\\Expression;\n" +
"\n" +
"new Expression(['expression' => '<caret>']);\n",
LANGUAGE_ID_EXPRESSION_LANGUAGE
);

assertInjectedLangAtCaret(
"<?php\n" +
"\n" +
Expand Down

0 comments on commit 14afd15

Please sign in to comment.