예제 #1
0
 public function testDropOpen()
 {
     $file = new File(parent::$tempDir . "garbage.txt");
     $lockable = new LockableFile($file);
     $file->open('w+');
     $lockable->drop();
     $this->assertTrue($lockable->exists());
 }
예제 #2
0
파일: FileTest.php 프로젝트: sbuberl/fSQL
 public function testDropOpen()
 {
     $file = new File(parent::$tempDir . "something.txt");
     $file->open('w+');
     $this->assertNotNull($file->getHandle());
     $this->assertTrue($file->exists());
     $file->drop();
     $this->assertTrue($file->exists());
 }