summaryrefslogblamecommitdiffstats
path: root/tests/stubs/wpdb_stub.php
blob: 72312bcecf1ae2fced38b30822ab7b2d975925b7 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                
<?php
class wpdb {
    public $insert_id = NULL;
    public function insert(string $table, array $data) { $this->insert_id = 1; }
    public function prepare(string $query, mixed $args) { return "prepared"; }
    public function get_results(string $query) { return NULL; }
}

$wpdb = new wpdb();