Skip to content

Commit fe635c1

Browse files
committed
Add a new test that causes the condition in the do/while loop to be false
1 parent 2e2b8ec commit fe635c1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

WordPress/Tests/Security/EscapeOutputUnitTest.22.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* Intentional parse error (nothing after T_ATTRIBUTE_END).
4+
* Intentional parse error (only whitespaces after T_ATTRIBUTE_END).
55
* This should be the only test in this file.
66
*/
77

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
/*
4+
* Intentional parse error (nothing after T_ATTRIBUTE_END).
5+
* There should be no whitespaces at the end of this file.
6+
* This should be the only test in this file.
7+
*/
8+
9+
throw new #[MyAttribute]

0 commit comments

Comments
 (0)