示例#1
0
文件: FileTest.php 项目: naucon/file
 /**
  * @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());
 }