예제 #1
0
파일: FileTest.php 프로젝트: naucon/file
 /**
  * @depends     testExist
  * @return      void
  */
 public function testCreateNewFile()
 {
     $pathname = __DIR__ . '/tmp/new_file.txt';
     if (is_file($pathname)) {
         unlink($pathname);
     }
     $fileObject = new File($pathname);
     $this->assertTrue($fileObject->createNewFile());
     $this->assertTrue($fileObject->isFile());
 }