Skip to content

Commit 2acbac9

Browse files
committed
WP/DeprecatedParameterValues: move syntax error test to its own file
1 parent 7d5bd27 commit 2acbac9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

WordPress/Tests/WP/DeprecatedParameterValuesUnitTest.1.inc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,3 @@ update_option(autoload: true, value: $value, option: 'blacklist_keys');
5454
wp_get_typography_font_size_value( $preset, array() ); // OK.
5555
wp_get_typography_font_size_value( $preset, true ); // Error.
5656
wp_get_typography_font_size_value( $preset, false ); // Error.
57-
58-
// Live coding/parse error.
59-
get_bloginfo( show: /*to do*/, );
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
/*
4+
* Intentional parse error (empty named parameter).
5+
* This should be the only test in this file.
6+
*/
7+
8+
get_bloginfo( show: /*to do*/, );

0 commit comments

Comments
 (0)