# wpfunnels/3.13.3/vendor/posthog/posthog-php/test/MockedHttpClient.php

WPFunnels – Funnel Builder for WooCommerce with Checkout &amp; One Click Upsell, version 3.13.3. 20 lines.

- Page: https://pluginprobe.com/plugins/wpfunnels/3.13.3/code/vendor/posthog/posthog-php/test/MockedHttpClient.php
- Raw: https://pluginprobe.com/plugins/wpfunnels/3.13.3/raw/vendor/posthog/posthog-php/test/MockedHttpClient.php
- Modified: 2026-04-02T10:54:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpfunnels/3.13.3/code/vendor/posthog/posthog-php/test/MockedHttpClient.php#L10-L20`.

```php
<?php

namespace PostHog\Test;

use PostHog\HttpResponse;
use PostHog\Test\Assets\MockedResponses;

class MockedHttpClient extends \PostHog\HttpClient
{
    public function sendRequest(string $path, ?string $payload, array $extraHeaders = []): HttpResponse
    {
        if (!isset($this->calls)) {
            $this->calls = array();
        }
        array_push($this->calls, array("path" => $path, "payload" => $payload));

        return parent::sendRequest($path, $payload, $extraHeaders);
    }
}

```
