/** * {@inheritdoc} */ public function createEmptyFile($basePath, $prefix = self::DEFAULT_SCOPE, $suffix = null, $extension = null, $maxTry = 65536) { $file = $this->tmpFs->createEmptyFile($basePath, $prefix, $suffix, $extension, $maxTry); $this->add($file, $prefix); return $file; }
/** * @expectedException Neutron\TemporaryFilesystem\IOException */ public function testCreateEmptyFileOnFileSecondMethod() { $createDir = $this->workspace . DIRECTORY_SEPARATOR . 'book-dir'; touch($createDir); $this->filesystem->createEmptyFile($createDir, 'romain', 'neutron', 'io'); }