# wpvr/9.1.3/vendor/posthog/posthog-php/test/MockedHttpClient.php

WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress, version 9.1.3. 20 lines.

- Page: https://pluginprobe.com/plugins/wpvr/9.1.3/code/vendor/posthog/posthog-php/test/MockedHttpClient.php
- Raw: https://pluginprobe.com/plugins/wpvr/9.1.3/raw/vendor/posthog/posthog-php/test/MockedHttpClient.php
- Modified: 2026-04-02T11:52:20+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/wpvr/9.1.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);
    }
}

```
