mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 06:27:28 +02:00
Style
This commit is contained in:
@ -8,8 +8,8 @@ test('passes', function () {
|
||||
});
|
||||
|
||||
test('passes with DateTime and DateTimeImmutable', function () {
|
||||
$now = new DateTime();
|
||||
$past = (new DateTimeImmutable())->modify('-1 day');
|
||||
$now = new DateTime;
|
||||
$past = (new DateTimeImmutable)->modify('-1 day');
|
||||
|
||||
expect($past)->toBeLessThan($now);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user