Skip to content

Conversation

@fabacino
Copy link
Contributor

@fabacino fabacino commented Sep 4, 2025

In case the xdebug extension is not loaded, the directory variable does not get initialized in _setUp() which results in a type error inside _tearDown().

 [TypeError] Codeception\Util\FileSystem::deleteDir(): Argument #1 ($dir) must be of type string, null given, called in tests/unit/C3Test.php on line 36

This PR just adds a guard to fix this issue.

In case the xdebug extension is not loaded, the directory variable
contains `null`.
@TavoNiievez TavoNiievez merged commit 50dea20 into Codeception:main Sep 26, 2025
5 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants