refreshApplication(); $this->assertTrue(CarbonImmutable::hasTestNow()); $this->assertSame( '2026-03-15T12:00:00-03:00', CarbonImmutable::now()->toIso8601String(), ); } public function test_missing_app_frozen_now_does_not_freeze_clock(): void { putenv('APP_FROZEN_NOW'); unset($_ENV['APP_FROZEN_NOW'], $_SERVER['APP_FROZEN_NOW']); $this->refreshApplication(); $this->assertFalse(CarbonImmutable::hasTestNow()); } }