Skip to content

Commit e1c145e

Browse files
committed
Update tests
1 parent c4915b5 commit e1c145e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

WordPress/Tests/Security/EscapeOutputUnitTest.21.inc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,11 @@ echo Some\Enum\Color::ENUM_CONSTANT; // Bad.
4444
echo Some\ClassName:: CLASS_CONSTANT; // Bad.
4545

4646
echo ClassName::$publicStaticProperty; // Bad
47+
48+
// phpcs:set WordPress.Security.EscapeOutput customEscapingFunctions[] \QualifiedExample\Namespaced\ClassName::statMethod
49+
50+
echo \QualifiedExample\Namespaced\ClassName::statMethod(); // Ok.
51+
52+
// phpcs:set WordPress.Security.EscapeOutput customEscapingFunctions[]
53+
54+
echo \QualifiedExample\Namespaced\ClassName::statMethod(); // Bad.

WordPress/Tests/Security/EscapeOutputUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ public function getErrorList( $testFile = '' ) {
199199
43 => 1,
200200
44 => 1,
201201
46 => 1,
202+
54 => 1,
202203
);
203204

204205
default:

0 commit comments

Comments
 (0)