We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e534f0 commit 5d3fb4dCopy full SHA for 5d3fb4d
tests/DateTimeImmutableTest.php
@@ -20,6 +20,11 @@ protected function setUp(): void
20
Anniversary::truncate();
21
}
22
23
+ protected function tearDown(): void
24
+ {
25
+ Date::useDefault();
26
+ }
27
+
28
public function testCanReturnCarbonImmutableObject(): void
29
{
30
Date::use(CarbonImmutable::class);
@@ -32,7 +37,5 @@ public function testCanReturnCarbonImmutableObject(): void
32
37
$anniversary = Anniversary::sole();
33
38
assert($anniversary instanceof Anniversary);
34
39
self::assertInstanceOf(CarbonImmutable::class, $anniversary->anniversary);
35
-
36
- Date::useDefault();
40
41
0 commit comments