@@ -28,11 +28,11 @@ public function testStat(LoopInterface $loop, FilesystemInterface $filesystem)
2828 $ this ->assertSame ($ actualStat [$ key ], $ result [$ key ]);
2929 }
3030
31- $ this ->assertInstanceOf ('DateTimeImmutable ' , $ result ['atime ' ]);
31+ $ this ->assertInstanceOf ('DateTime ' , $ result ['atime ' ]);
3232 $ this ->assertEquals ($ actualStat ['atime ' ], $ result ['atime ' ]->format ('U ' ));
33- $ this ->assertInstanceOf ('DateTimeImmutable ' , $ result ['mtime ' ]);
33+ $ this ->assertInstanceOf ('DateTime ' , $ result ['mtime ' ]);
3434 $ this ->assertEquals ($ actualStat ['mtime ' ], $ result ['mtime ' ]->format ('U ' ));
35- $ this ->assertInstanceOf ('DateTimeImmutable ' , $ result ['atime ' ]);
35+ $ this ->assertInstanceOf ('DateTime ' , $ 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 ('DateTimeImmutable ' , $ result ['atime ' ]);
47+ $ this ->assertInstanceOf ('DateTime ' , $ result ['atime ' ]);
4848 $ this ->assertEquals ($ actualStat ['atime ' ], $ result ['atime ' ]->format ('U ' ));
49- $ this ->assertInstanceOf ('DateTimeImmutable ' , $ result ['mtime ' ]);
49+ $ this ->assertInstanceOf ('DateTime ' , $ result ['mtime ' ]);
5050 $ this ->assertEquals ($ actualStat ['mtime ' ], $ result ['mtime ' ]->format ('U ' ));
51- $ this ->assertInstanceOf ('DateTimeImmutable ' , $ result ['atime ' ]);
51+ $ this ->assertInstanceOf ('DateTime ' , $ result ['atime ' ]);
5252 $ this ->assertEquals ($ actualStat ['ctime ' ], $ result ['ctime ' ]->format ('U ' ));
5353 }
5454
0 commit comments