Changeset 32415 for branches/3.8/tests/phpunit/tests/db.php
- Timestamp:
- 05/06/2015 09:12:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8/tests/phpunit/tests/db.php
r32390 r32415 291 291 function data_get_table_from_query() { 292 292 $table = 'a_test_table_name'; 293 $db_table = '`a_test_db`.`another_test_table`'; 293 294 294 295 $queries = array( … … 393 394 ); 394 395 395 foreach ( $queries as &$query ) { 396 $query = array( $query, $table ); 396 $querycount = count( $queries ); 397 for ( $ii = 0; $ii < $querycount; $ii++ ) { 398 $db_query = str_replace( $table, $db_table, $queries[ $ii ] ); 399 $expected_db_table = str_replace( '`', '', $db_table ); 400 401 $queries[ $ii ] = array( $queries[ $ii ], $table ); 402 $queries[] = array( $db_query, $expected_db_table ); 397 403 } 398 404 return $queries;
Note: See TracChangeset
for help on using the changeset viewer.