Skip to content

Commit c0db6ba

Browse files
committed
DB/PreparedSQL: move intentional syntax error test to its own file
1 parent e0ebae2 commit c0db6ba

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

WordPress/Tests/DB/PreparedSQLUnitTest.1.inc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,3 @@ echo $wpdb::CONSTANT_NAME;
142142

143143
// Not an identifiable method call.
144144
$wpdb->{$methodName}('query');
145-
146-
// Don't throw an error during live coding.
147-
wpdb::prepare( "SELECT * FROM $wpdb->posts
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 (unclosed string).
5+
* This should be the only test in this file.
6+
*/
7+
8+
wpdb::prepare( "SELECT * FROM $wpdb->posts

0 commit comments

Comments
 (0)