public function testCreateDelete() { $fileName = ".tmp.txt"; $file = new File($fileName); $this->assertFalse($file->exists()); $file->createNewFile(); $this->assertTrue($file->exists()); $file->delete(); $this->assertFalse($file->exists()); }