@@ -28,11 +28,11 @@ public function testStat(LoopInterface $loop, FilesystemInterface $filesystem)
28
28
$ this ->assertSame ($ actualStat [$ key ], $ result [$ key ]);
29
29
}
30
30
31
- $ this ->assertInstanceOf ('DateTimeImmutable ' , $ result ['atime ' ]);
31
+ $ this ->assertInstanceOf ('DateTime ' , $ result ['atime ' ]);
32
32
$ this ->assertEquals ($ actualStat ['atime ' ], $ result ['atime ' ]->format ('U ' ));
33
- $ this ->assertInstanceOf ('DateTimeImmutable ' , $ result ['mtime ' ]);
33
+ $ this ->assertInstanceOf ('DateTime ' , $ result ['mtime ' ]);
34
34
$ this ->assertEquals ($ actualStat ['mtime ' ], $ result ['mtime ' ]->format ('U ' ));
35
- $ this ->assertInstanceOf ('DateTimeImmutable ' , $ result ['atime ' ]);
35
+ $ this ->assertInstanceOf ('DateTime ' , $ result ['atime ' ]);
36
36
$ this ->assertEquals ($ actualStat ['ctime ' ], $ result ['ctime ' ]->format ('U ' ));
37
37
}
38
38
@@ -44,11 +44,11 @@ public function testTime(LoopInterface $loop, FilesystemInterface $filesystem)
44
44
$ actualStat = lstat (__FILE__ );
45
45
$ result = $ this ->await ($ filesystem ->file (__FILE__ )->time (), $ loop );
46
46
$ this ->assertSame (3 , count ($ result ));
47
- $ this ->assertInstanceOf ('DateTimeImmutable ' , $ result ['atime ' ]);
47
+ $ this ->assertInstanceOf ('DateTime ' , $ result ['atime ' ]);
48
48
$ this ->assertEquals ($ actualStat ['atime ' ], $ result ['atime ' ]->format ('U ' ));
49
- $ this ->assertInstanceOf ('DateTimeImmutable ' , $ result ['mtime ' ]);
49
+ $ this ->assertInstanceOf ('DateTime ' , $ result ['mtime ' ]);
50
50
$ this ->assertEquals ($ actualStat ['mtime ' ], $ result ['mtime ' ]->format ('U ' ));
51
- $ this ->assertInstanceOf ('DateTimeImmutable ' , $ result ['atime ' ]);
51
+ $ this ->assertInstanceOf ('DateTime ' , $ result ['atime ' ]);
52
52
$ this ->assertEquals ($ actualStat ['ctime ' ], $ result ['ctime ' ]->format ('U ' ));
53
53
}
54
54
0 commit comments