mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
21 lines
368 B
PHP
21 lines
368 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\ZM\Utils;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use ZM\Utils\SingletonTrait;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
class SingletonTraitTest extends TestCase
|
|
{
|
|
public function testGetInstance(): void
|
|
{
|
|
$mock = $this->getObjectForTrait(SingletonTrait::class);
|
|
$this->assertEquals($mock, $mock::getInstance());
|
|
}
|
|
}
|