Skip to content

Commit 35ddd19

Browse files
committed
Add a syntax error to the integration test to ensure it's caught
1 parent df0478f commit 35ddd19

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ruleset_test.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,6 @@ include( 'non-php-file.svg' ); // NOK. Error. Including non-php file.
175175

176176
echo file_get_contents( 'non-php-file.svg' ); // XSS OK. Preferred way of including SVG/CSS file. WP_Filesystem Warning.
177177

178-
?> <!-- closing PHP tag should be omitted -->
178+
thisisasyntaxerror! // Bad. Error.
179+
180+
?> <!-- closing PHP tag should be omitted -->

ruleset_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
166 => 1,
5252
170 => 1,
5353
174 => 1,
54+
178 => 1,
5455
),
5556
'warnings' => array(
5657
9 => 1,
@@ -265,4 +266,3 @@ private function error_warning_message( $expected, $type, $number, $line ) {
265266
} else {
266267
exit( 1 );
267268
}
268-

0 commit comments

Comments
 (0)