true, 'data' => $data]); exit; } } if (!function_exists('wp_send_json_error')) { function wp_send_json_error(mixed $data = null, int $status_code = null): never { echo json_encode(['success' => false, 'data' => $data]); exit; } } if (!function_exists('is_admin')) { function is_admin(): bool { return false; } } if (!function_exists('add_filter')) { function add_filter(string $hook, callable $callback, int $priority = 10, int $args = 1): bool { return true; } } // Define WordPress constants if (!defined('OBJECT')) { define('OBJECT', 'OBJECT'); } if (!defined('ARRAY_A')) { define('ARRAY_A', 'ARRAY_A'); } if (!defined('ARRAY_N')) { define('ARRAY_N', 'ARRAY_N'); } // Set up error reporting error_reporting(E_ALL); ini_set('display_errors', '1'); // Output bootstrap information echo "Care Book Block Ultimate - PHPUnit Bootstrap\n"; echo "PHP Version: " . PHP_VERSION . "\n"; echo "PHPUnit Bootstrap Complete\n\n";