Skip to content

Commit 9b8f801

Browse files
committed
chore: added comments to the test classes for BaseService::updateServicesCache()
1 parent 864cf17 commit 9b8f801

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tests/_support/Test/AfterAutoloadModule/Config/Services.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,16 @@
1616
use AfterAutoloadModule\Test;
1717
use CodeIgniter\Config\BaseService;
1818

19+
/**
20+
* Services for testing BaseService::updateServicesCache()
21+
*
22+
* This class should not be discovered by the autoloader until the test adds this namespace to the autoloader.
23+
*/
1924
class Services extends BaseService
2025
{
26+
/**
27+
* Return a shared instance of the Test class for testing
28+
*/
2129
public static function test(bool $getShared = true): Test
2230
{
2331
if ($getShared) {

tests/_support/Test/AfterAutoloadModule/Test.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313

1414
namespace AfterAutoloadModule;
1515

16+
/**
17+
* A simple class for testing BaseService::updateServicesCache()
18+
*
19+
* This class should not be discovered by the autoloader until the test adds this namespace to the autoloader.
20+
*/
1621
class Test
1722
{
1823
}

0 commit comments

Comments
 (0)