@SuppressWarnings(PHPMD) @codingStandardsIgnoreStart
Definition at line 13 of file TestPhrases.php.
◆ awesomeFunction()
Definition at line 15 of file TestPhrases.php.
23 new Phrase(
'simple text with 1 string literal placeholder %1',
'arg'),
24 new Phrase(
'simple text with 1 variable placeholder %1', $str1),
25 new Phrase(
'simple text with multiple placeholders %1 %2', $str1, $str2),
33 new Phrase(
'first part' .
' second part' .
' third part'),
36 new Phrase(
'first part' .
' second part with one string literal placeholder %1',
'arg'),
37 new Phrase(
'first part of concat' .
' second part with one variable placeholder %1', $str1),
38 new Phrase(
'first part of concat' .
' second part with two placeholders %1, %2', $str1, $str2),
39 new Phrase(
'first part of concat' .
' second part' .
' third part with one placeholder %1',
'arg'),
41 'first part of concat' .
' second part' .
' third part with two placeholders %1, %2',
47 new Phrase(
'string with escaped \'single quotes\''),
48 new Phrase(
'string with placeholder in escaped single quotes \'%1\'',
'arg'),
49 new Phrase(
'string with "double quotes"'),
50 new Phrase(
'string with placeholder in double quotes "%1"',
'arg'),
53 $singleQuoteTranslateFunctions = [
55 __(
'first part' .
' second part'),
56 __(
'first part' .
' second part' .
' third part'),
59 __(
'first part' .
' second part with one string literal placeholder %1',
'arg'),
60 __(
'first part of concat' .
' second part with one variable placeholder %1', $str1),
61 __(
'first part of concat' .
' second part with two placeholders %1, %2', $str1, $str2),
62 __(
'first part of concat' .
' second part' .
' third part with one placeholder %1',
'arg'),
63 __(
'first part of concat' .
' second part' .
' third part with two placeholders %1, %2', $str1, $str2),
66 __(
'string with escaped \'single quotes\''),
67 __(
'string with placeholder in escaped single quotes \'%1\'',
'arg'),
68 __(
'string with "double quotes"'),
69 __(
'string with placeholder in double quotes "%1"',
'arg'),
72 $doubleQuoteTranslateFunctions = [
74 __(
"first part" .
" second part"),
75 __(
"first part" .
" second part" .
" third part"),
78 __(
"first part" .
" second part with one string literal placeholder %1",
"arg"),
79 __(
"first part of concat" .
" second part with one variable placeholder %1", $str1),
80 __(
"first part of concat" .
" second part with two placeholders %1, %2", $str1, $str2),
81 __(
"first part of concat" .
" second part" .
" third part with one placeholder %1",
"arg"),
82 __(
"first part of concat" .
" second part" .
" third part with two placeholders %1, %2", $str1, $str2),
85 __(
"string with 'single quotes'"),
86 __(
"string with placeholder in single quotes '%1'",
"arg"),
87 __(
"string with escaped \"double quotes\""),
88 __(
"string with placeholder in escaped double quotes \"%1\"",
"arg"),
91 $unclosedApostrophePhrase =
__(
'string that\'s got an unclosed single quote in it');
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/Setup/Console/Command/_files/phrases/TestPhrases.php