diff --git a/tests/Doctrine/Deprecations/DeprecationTest.php b/tests/Doctrine/Deprecations/DeprecationTest.php index d322c25..d39968e 100644 --- a/tests/Doctrine/Deprecations/DeprecationTest.php +++ b/tests/Doctrine/Deprecations/DeprecationTest.php @@ -25,7 +25,7 @@ class DeprecationTest extends TestCase public function setUp(): void { - // reset the global state of Deprecation class accross tests + // reset the global state of Deprecation class across tests $reflectionProperty = new ReflectionProperty(Deprecation::class, 'ignoredPackages'); $reflectionProperty->setAccessible(true); $reflectionProperty->setValue([]); @@ -34,6 +34,8 @@ public function setUp(): void $reflectionProperty->setAccessible(true); $reflectionProperty->setValue([]); + Deprecation::disable(); + Deprecation::enableTrackingDeprecations(); }