Skip to content

Commit 84790c0

Browse files
committed
DateTime => DateTimeImmutable
1 parent 29fcfb1 commit 84790c0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/Adapters/FileTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public function testStat(LoopInterface $loop, FilesystemInterface $filesystem)
2828
$this->assertSame($actualStat[$key], $result[$key]);
2929
}
3030

31-
$this->assertInstanceOf('DateTime', $result['atime']);
31+
$this->assertInstanceOf('DateTimeImmutable', $result['atime']);
3232
$this->assertEquals($actualStat['atime'], $result['atime']->format('U'));
33-
$this->assertInstanceOf('DateTime', $result['mtime']);
33+
$this->assertInstanceOf('DateTimeImmutable', $result['mtime']);
3434
$this->assertEquals($actualStat['mtime'], $result['mtime']->format('U'));
35-
$this->assertInstanceOf('DateTime', $result['atime']);
35+
$this->assertInstanceOf('DateTimeImmutable', $result['atime']);
3636
$this->assertEquals($actualStat['ctime'], $result['ctime']->format('U'));
3737
}
3838

@@ -44,11 +44,11 @@ public function testTime(LoopInterface $loop, FilesystemInterface $filesystem)
4444
$actualStat = lstat(__FILE__);
4545
$result = $this->await($filesystem->file(__FILE__)->time(), $loop);
4646
$this->assertSame(3, count($result));
47-
$this->assertInstanceOf('DateTime', $result['atime']);
47+
$this->assertInstanceOf('DateTimeImmutable', $result['atime']);
4848
$this->assertEquals($actualStat['atime'], $result['atime']->format('U'));
49-
$this->assertInstanceOf('DateTime', $result['mtime']);
49+
$this->assertInstanceOf('DateTimeImmutable', $result['mtime']);
5050
$this->assertEquals($actualStat['mtime'], $result['mtime']->format('U'));
51-
$this->assertInstanceOf('DateTime', $result['atime']);
51+
$this->assertInstanceOf('DateTimeImmutable', $result['atime']);
5252
$this->assertEquals($actualStat['ctime'], $result['ctime']->format('U'));
5353
}
5454

0 commit comments

Comments
 (0)