# wpvr/8.5.69/vendor/posthog/posthog-php/test/ConsumerLibCurlTest.php

WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress, version 8.5.69. 64 lines.

- Page: https://pluginprobe.com/plugins/wpvr/8.5.69/code/vendor/posthog/posthog-php/test/ConsumerLibCurlTest.php
- Raw: https://pluginprobe.com/plugins/wpvr/8.5.69/raw/vendor/posthog/posthog-php/test/ConsumerLibCurlTest.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/8.5.69/code/vendor/posthog/posthog-php/test/ConsumerLibCurlTest.php#L10-L20`.

```php
<?php

namespace PostHog\Test;

use PHPUnit\Framework\TestCase;
use PostHog\Client;

class ConsumerLibCurlTest extends TestCase
{
    private $client;

    public function setUp(): void
    {
        date_default_timezone_set("UTC");
        $this->client = new Client(
            "BrpS4SctoaCCsyjlnlun3OzyNJAafdlv__jUWaaJWXg",
            [
                "consumer" => "lib_curl",
                "debug" => true,
            ]
        );
    }

    public function testCapture(): void
    {
        self::assertTrue(
            $this->client->capture(
                array(
                    "distinctId" => "lib-curl-capture",
                    "event" => "PHP Lib Curl'd\" Event",
                )
            )
        );
    }

    public function testIdentify(): void
    {
        self::assertTrue(
            $this->client->identify(
                array(
                    "distinctId" => "lib-curl-identify",
                    "properties" => array(
                        "loves_php" => false,
                        "type" => "consumer lib-curl test",
                        "birthday" => time(),
                    ),
                )
            )
        );
    }

    public function testAlias(): void
    {
        self::assertTrue(
            $this->client->alias(
                array(
                    "alias" => "lib-curl-alias",
                    "distinctId" => "user-id",
                )
            )
        );
    }
}

```
