-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Ensure both Carbon and CarbonImmutable get the same test now (#…
…36117) * [8.x] Ensure both Carbon and CarbonImmutable get the same test now. In project where we might use mixes of Carbon and CarbonImmutable you need to remember to always setTestNow() for both scenario, this PR solved it by ensuring both instance has the same date and time during tests. Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * Refactor test Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
- Loading branch information
Showing
3 changed files
with
30 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters