<?php

namespace Blazemedia\OneSignal\Tests;

use PHPUnit\Framework\TestCase;
use Blazemedia\OneSignal\Plugin;

/**
 * Test case for Plugin class
 */
class PluginTest extends TestCase
{
    /**
     * Test plugin instance
     */
    public function testPluginInstance()
    {
        $plugin = Plugin::getInstance();
        $this->assertInstanceOf(Plugin::class, $plugin);
    }

    /**
     * Test singleton pattern
     */
    public function testSingletonPattern()
    {
        $plugin1 = Plugin::getInstance();
        $plugin2 = Plugin::getInstance();
        
        $this->assertSame($plugin1, $plugin2);
    }

    /**
     * Test plugin version constant
     */
    public function testPluginVersion()
    {
        $this->assertEquals('1.0.0', Plugin::VERSION);
    }
} 