summaryrefslogtreecommitdiffstats
path: root/tests/stubs/wpdb_stub.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stubs/wpdb_stub.php')
-rw-r--r--tests/stubs/wpdb_stub.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/stubs/wpdb_stub.php b/tests/stubs/wpdb_stub.php
deleted file mode 100644
index 957c994..0000000
--- a/tests/stubs/wpdb_stub.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?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();