There was an error while loading. Please reload this page.
2 parents 7c0e3b4 + b6d59e5 commit 6dbed4cCopy full SHA for 6dbed4c
1 file changed
tests/lib/TestCase.php
@@ -96,7 +96,9 @@ public function restoreService(string $name): bool {
96
return $oldService;
97
});
98
} else {
99
- unset($container[$oldService]);
+ // The service was not registered before the test override.
100
+ // Remove the test registration so the container returns to its prior state.
101
+ unset($container[$name]);
102
}
103
104
unset($this->services[$name]);
0 commit comments