diff --git a/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc b/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc index 187228c2a4..092fbfdc3d 100644 --- a/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc +++ b/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc @@ -27,3 +27,5 @@ function test() ### use the code from the regex ### over hre ### ok? + +#️⃣ Apparently the emoji keycap number sign (hash) also works and turns this into a comment. diff --git a/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc.fixed b/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc.fixed index 7bb6c3fb03..4024b4d263 100644 --- a/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc.fixed +++ b/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc.fixed @@ -27,3 +27,5 @@ function test() // use the code from the regex // over hre // ok? + +// ️⃣ Apparently the emoji keycap number sign (hash) also works and turns this into a comment. diff --git a/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php b/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php index 457b5d896d..7d107dd341 100644 --- a/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php +++ b/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php @@ -37,6 +37,7 @@ public function getErrorList() 27 => 1, 28 => 1, 29 => 1, + 31 => 1, ]; }//end getErrorList() diff --git a/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc b/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc index 024876842e..220b916e40 100644 --- a/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc +++ b/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc @@ -186,6 +186,9 @@ readonly class MyClass readonly $property = 10; } +#️⃣ Apparently the emoji keycap number sign (hash) also works and turns this into a comment. +echo 'hello!'; + /* * N.B.: The below test line must be the last test in the file. * Testing that a new line after an inline comment when it's the last non-whitespace diff --git a/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc.fixed b/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc.fixed index 949a9ff949..2cc700c6bf 100644 --- a/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc.fixed +++ b/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc.fixed @@ -179,6 +179,9 @@ readonly class MyClass readonly $property = 10; } +// ️⃣ Apparently the emoji keycap number sign (hash) also works and turns this into a comment. +echo 'hello!'; + /* * N.B.: The below test line must be the last test in the file. * Testing that a new line after an inline comment when it's the last non-whitespace diff --git a/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php index c559c5ae6b..a2bbc4eb61 100644 --- a/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php @@ -52,6 +52,7 @@ public function getErrorList($testFile='') 126 => 2, 130 => 2, 149 => 1, + 189 => 1, ]; return $errors;