From 6f2e6135f1df5c316290a4b3a11ccca6bb583f45 Mon Sep 17 00:00:00 2001 From: sunxyw Date: Tue, 29 Mar 2022 18:16:18 +0800 Subject: [PATCH] add singleton trait test --- tests/ZM/Utils/SingletonTraitTest.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/ZM/Utils/SingletonTraitTest.php diff --git a/tests/ZM/Utils/SingletonTraitTest.php b/tests/ZM/Utils/SingletonTraitTest.php new file mode 100644 index 00000000..e7f5998c --- /dev/null +++ b/tests/ZM/Utils/SingletonTraitTest.php @@ -0,0 +1,17 @@ +getObjectForTrait(SingletonTrait::class); + $this->assertEquals($mock, $mock::getInstance()); + } +}