summaryrefslogblamecommitdiffstats
path: root/tests/stubs/wpdb_stub.php
blob: 957c994bd66893815bf15ff58ed9037e783fe7a7 (plain) (tree)
1
2
3
4
5
6
     




                                                                               







                                                                                
<?php
// SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
// SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

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();