Skip to content

Commit

Permalink
[TASK] flushInternalRuntimeCaches() in unit test tearDown()
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli42 committed Sep 1, 2018
1 parent efb45c5 commit 487197e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Core/Unit/UnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ protected function tearDown()
$this->restoreEnvironment();
}

// Flush the two static $indpEnvCache and $idnaStringCache
// between test runs to prevent side effects from these caches.
GeneralUtility::flushInternalRuntimeCaches();

// GeneralUtility::makeInstance() singleton handling
if ($this->resetSingletonInstances === true) {
// Reset singletons if asked for by test setup
Expand Down

0 comments on commit 487197e

Please sign in to comment.