/** * @depends testExist * @return void */ public function testLastChanged() { $filePath = __DIR__ . '/example.txt'; $fileObject = new File($filePath); $this->assertGreaterThanOrEqual(0, $fileObject->getCTime()); $this->assertInstanceOf('DateTime', $fileObject->lastChanged()); $fileObject = new \SplFileInfo($filePath); $this->assertGreaterThanOrEqual(0, $fileObject->getCTime()); }