public function testDoNotDestroy() { $tmpFile = new TempFile(static::PREFIX); $tmpFile->write($this->twoCities); $path = $tmpFile->getPath(); $tmpFile->doNotDestroy(); $tmpFile->__destruct(); $this->assertTrue(file_exists($path)); }