From 1fcefc6d3cfe742b8a800703c5ffe6fc76b73d25 Mon Sep 17 00:00:00 2001 From: Eric Gesemann Date: Mon, 25 Mar 2024 18:33:41 +0100 Subject: [PATCH] add SUtilsTest --- src/StaticUtil/AbstractStaticUtil.php | 1 + src/StaticUtil/{SUtil.php => SUtils.php} | 2 +- tests/StaticUtil/SUtilsTest.php | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) rename src/StaticUtil/{SUtil.php => SUtils.php} (98%) create mode 100644 tests/StaticUtil/SUtilsTest.php diff --git a/src/StaticUtil/AbstractStaticUtil.php b/src/StaticUtil/AbstractStaticUtil.php index 7323d2b5..72639ee9 100644 --- a/src/StaticUtil/AbstractStaticUtil.php +++ b/src/StaticUtil/AbstractStaticUtil.php @@ -4,6 +4,7 @@ /** * @internal + * @codeCoverageIgnore */ abstract class AbstractStaticUtil { diff --git a/src/StaticUtil/SUtil.php b/src/StaticUtil/SUtils.php similarity index 98% rename from src/StaticUtil/SUtil.php rename to src/StaticUtil/SUtils.php index f045102e..762d9426 100644 --- a/src/StaticUtil/SUtil.php +++ b/src/StaticUtil/SUtils.php @@ -2,7 +2,7 @@ namespace HeimrichHannot\UtilsBundle\StaticUtil; -class SUtil +class SUtils { protected static array $instances = []; diff --git a/tests/StaticUtil/SUtilsTest.php b/tests/StaticUtil/SUtilsTest.php new file mode 100644 index 00000000..7edea4db --- /dev/null +++ b/tests/StaticUtil/SUtilsTest.php @@ -0,0 +1,17 @@ +assertInstanceOf(StaticArrayUtil::class, SUtils::array()); + $this->assertInstanceOf(StaticClassUtil::class, SUtils::class()); + } +} \ No newline at end of file