Skip to content

Commit 75993cc

Browse files
committed
AlternativeFunctions: add extra unit test
Just to be sure this was covered correctly (which it luckily was).
1 parent ecb633d commit 75993cc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

WordPress/Tests/WP/AlternativeFunctionsUnitTest.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@ readfile( 'php://filter/resource=http://www.example.com' ); // Warning.
6868
file_put_contents("php://filter/write=string.rot13/resource=example.txt","Hello World"); // Warning.
6969

7070
curl_version(); // OK.
71+
72+
// Safeguard that additional logic uses case-insensitive function name check.
73+
Strip_Tags( $something ); // Warning.

WordPress/Tests/WP/AlternativeFunctionsUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function getWarningList() {
6363
49 => 1,
6464
67 => 1,
6565
68 => 1,
66+
73 => 1,
6667
);
6768
}
6869

0 commit comments

Comments
 (0)