Example #1
0
 public function testClose()
 {
     $file = new File(parent::$tempDir . "something.txt");
     $file->open('w+');
     $this->assertTrue($file->exists());
     $file->close();
     $this->assertNull($file->getHandle());
     $this->assertTrue($file->exists());
 }