You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tests/Translation/PhpExtractorTest.php
+25-12Lines changed: 25 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -39,18 +39,31 @@ public function testExtraction($resource)
39
39
nowdoc key with whitespace and nonescaped \$\n sequences
40
40
EOF;
41
41
// Assert
42
-
$expectedCatalogue = array('messages' => array(
43
-
'single-quoted key' => 'prefixsingle-quoted key',
44
-
'double-quoted key' => 'prefixdouble-quoted key',
45
-
'heredoc key' => 'prefixheredoc key',
46
-
'nowdoc key' => 'prefixnowdoc key',
47
-
"double-quoted key with whitespace and escaped \$\n\" sequences" => "prefixdouble-quoted key with whitespace and escaped \$\n\" sequences",
48
-
'single-quoted key with whitespace and nonescaped \$\n\' sequences' => 'prefixsingle-quoted key with whitespace and nonescaped \$\n\' sequences',
49
-
'single-quoted key with "quote mark at the end"' => 'prefixsingle-quoted key with "quote mark at the end"',
50
-
$expectedHeredoc => 'prefix'.$expectedHeredoc,
51
-
$expectedNowdoc => 'prefix'.$expectedNowdoc,
52
-
'{0} There is no apples|{1} There is one apple|]1,Inf[ There are %count% apples' => 'prefix{0} There is no apples|{1} There is one apple|]1,Inf[ There are %count% apples',
53
-
));
42
+
$expectedCatalogue = array(
43
+
'messages' => array(
44
+
'single-quoted key' => 'prefixsingle-quoted key',
45
+
'double-quoted key' => 'prefixdouble-quoted key',
46
+
'heredoc key' => 'prefixheredoc key',
47
+
'nowdoc key' => 'prefixnowdoc key',
48
+
"double-quoted key with whitespace and escaped \$\n\" sequences" => "prefixdouble-quoted key with whitespace and escaped \$\n\" sequences",
49
+
'single-quoted key with whitespace and nonescaped \$\n\' sequences' => 'prefixsingle-quoted key with whitespace and nonescaped \$\n\' sequences',
50
+
'single-quoted key with "quote mark at the end"' => 'prefixsingle-quoted key with "quote mark at the end"',
51
+
$expectedHeredoc => 'prefix'.$expectedHeredoc,
52
+
$expectedNowdoc => 'prefix'.$expectedNowdoc,
53
+
'{0} There is no apples|{1} There is one apple|]1,Inf[ There are %count% apples' => 'prefix{0} There is no apples|{1} There is one apple|]1,Inf[ There are %count% apples',
0 commit comments