Skip to content

Commit

Permalink
CS Squiz.Strings.DoubleQuoteUsage.NotRequired was excluded from Extra…
Browse files Browse the repository at this point in the history
…ctor test
  • Loading branch information
vrestihnat committed Feb 9, 2021
1 parent 1963188 commit 13e06f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions ruleset.xml
Expand Up @@ -9,4 +9,7 @@
<rule ref="KdybyCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName">
<exclude-pattern>tests/KdybyTests/Translation/data/extractor-files/*</exclude-pattern>
</rule>
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired">
<exclude-pattern>tests/KdybyTests/Translation/LatteExtractorTest.phpt</exclude-pattern>
</rule>
</ruleset>
7 changes: 2 additions & 5 deletions tests/KdybyTests/Translation/LatteExtractorTest.phpt
Expand Up @@ -36,10 +36,9 @@ class LatteExtractorTest extends \KdybyTests\Translation\TestCase
],
];
} else {
$impT = sprintf('%s%s%s', '(', '"Important title"', ')');
$mess = [
'messages' => [
$impT => $impT,
"(\"Important title\")" => "(\"Important title\")",
"('Another important title')" => "('Another important title')",
"\nInteresting article about interesting topic\n" => "\nInteresting article about interesting topic\n",
"('Chapter 2')" => "('Chapter 2')",
Expand Down Expand Up @@ -70,11 +69,9 @@ class LatteExtractorTest extends \KdybyTests\Translation\TestCase
],
];
} else {
$impT = sprintf('%s%s%s', '(', '"Important title"', ')');
$prefixImpT = sprintf('%s%s%s', 'homepage.(', '"Important title"', ')');
$mess = [
'messages' => [
$prefixImpT => $impT,
"homepage.(\"Important title\")" => "(\"Important title\")",
"homepage.('Another important title')" => "('Another important title')",
"homepage.\nInteresting article about interesting topic\n" => "\nInteresting article about interesting topic\n",
"homepage.('Chapter 2')" => "('Chapter 2')",
Expand Down

0 comments on commit 13e06f8

Please sign in to comment.