File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ public static function enableForwardCompatibility(): void
1616 self ::$ isForwardCompatibilityEnabled = true ;
1717 }
1818
19+ public static function disableForwardCompatibility (): void
20+ {
21+ self ::$ isForwardCompatibilityEnabled = false ;
22+ }
23+
1924 public static function isForwardCompatibilityEnabled (): bool
2025 {
2126 return self ::$ isForwardCompatibilityEnabled ;
Original file line number Diff line number Diff line change @@ -14,10 +14,17 @@ public function testIsForwardCompatabilityEnabledReturnsFalseByDefault(): void
1414 self ::assertFalse (Future::isForwardCompatibilityEnabled ());
1515 }
1616
17- public function testEnableForwardCompatabilityLetIsForwardCompatabilityEnabledReturnsTrue (): void
17+ public function testEnableForwardCompatabilityLetsIsForwardCompatabilityEnabledReturnTrue (): void
1818 {
1919 Future::enableForwardCompatibility ();
2020
2121 self ::assertTrue (Future::isForwardCompatibilityEnabled ());
2222 }
23+
24+ public function testDisableForwardCompatabilityLetsIsForwardCompatabilityEnabledReturnFalse (): void
25+ {
26+ Future::disableForwardCompatibility ();
27+
28+ self ::assertFalse (Future::isForwardCompatibilityEnabled ());
29+ }
2330}
You can’t perform that action at this time.
0 commit comments