Skip to content

Commit 16f4a3a

Browse files
committed
Squiz/EmbeddedPhp: add some extra tests with ignore annotations
... just as an extra safeguard.
1 parent 2fc1ca9 commit 16f4a3a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,5 @@ function foo()
117117
<?php /* translators: too much space before close */ ?>
118118

119119
<?php echo 'okay'; // phpcs:ignore Standard.Category.Sniff -- reason. ?>
120+
<?php echo 'too much space before close'; // phpcs:ignore Standard.Category.Sniff -- reason. ?>
121+
<?php echo 'no space before close'; // phpcs:ignore Standard.Category.Sniff -- reason.?>

src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc.fixed

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,5 @@ function foo()
117117
<?php /* translators: too much space before close */ ?>
118118

119119
<?php echo 'okay'; // phpcs:ignore Standard.Category.Sniff -- reason. ?>
120+
<?php echo 'too much space before close'; // phpcs:ignore Standard.Category.Sniff -- reason. ?>
121+
<?php echo 'no space before close'; // phpcs:ignore Standard.Category.Sniff -- reason. ?>

src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public function getErrorList()
6060
113 => 1,
6161
116 => 1,
6262
117 => 1,
63+
120 => 1,
64+
121 => 1,
6365
];
6466

6567
}//end getErrorList()

0 commit comments

Comments
 (0)