Skip to content

Commit

Permalink
add SUtilsTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ericges committed Mar 25, 2024
1 parent d4d84b6 commit 1fcefc6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/StaticUtil/AbstractStaticUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

/**
* @internal
* @codeCoverageIgnore
*/
abstract class AbstractStaticUtil
{
Expand Down
2 changes: 1 addition & 1 deletion src/StaticUtil/SUtil.php → src/StaticUtil/SUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace HeimrichHannot\UtilsBundle\StaticUtil;

class SUtil
class SUtils
{
protected static array $instances = [];

Expand Down
17 changes: 17 additions & 0 deletions tests/StaticUtil/SUtilsTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace StaticUtil;

use Contao\TestCase\ContaoTestCase;
use HeimrichHannot\UtilsBundle\StaticUtil\StaticArrayUtil;
use HeimrichHannot\UtilsBundle\StaticUtil\StaticClassUtil;
use HeimrichHannot\UtilsBundle\StaticUtil\SUtils;

class SUtilsTest extends ContaoTestCase
{
public function testSUtils()
{
$this->assertInstanceOf(StaticArrayUtil::class, SUtils::array());
$this->assertInstanceOf(StaticClassUtil::class, SUtils::class());
}
}

0 comments on commit 1fcefc6

Please sign in to comment.