<?php

namespace App\Tests\Service;

use App\Service\StripeService;
use PHPUnit\Framework\TestCase;

class StripeServiceTest extends TestCase
{
    private function createService(): StripeService
    {
        return new StripeService('sk_test', 'whsec_test', 'whsec_connect_test', 'https://example.com');
    }

    public function testVerifyWebhookSignatureReturnsNullOnInvalid(): void
    {
        self::assertNull($this->createService()->verifyWebhookSignature('{}', 'invalid'));
    }

    public function testVerifyConnectWebhookSignatureReturnsNullOnInvalid(): void
    {
        self::assertNull($this->createService()->verifyConnectWebhookSignature('{}', 'invalid'));
    }
}
