mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-22 08:05:34 +08:00
refactor phpunit-swoole to phpunit-zm and move old test cases
This commit is contained in:
20
tests_old/ZM/Utils/SingletonTraitTest.php
Normal file
20
tests_old/ZM/Utils/SingletonTraitTest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user