Changeset 30528 for trunk/tests/phpunit/tests/db.php
- Timestamp:
- 11/23/2014 12:46:50 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db.php
r30400 r30528 924 924 } 925 925 926 /**927 * Special class for exposing protected wpdb methods we need to access928 */929 class wpdb_exposed_methods_for_testing extends wpdb {930 public function __construct() {931 global $wpdb;932 $this->dbh = $wpdb->dbh;933 $this->use_mysqli = $wpdb->use_mysqli;934 $this->ready = true;935 $this->field_types = $wpdb->field_types;936 $this->charset = $wpdb->charset;937 }938 939 public function __call( $name, $arguments ) {940 return call_user_func_array( array( $this, $name ), $arguments );941 }942 }
Note: See TracChangeset
for help on using the changeset viewer.