/** @test */ function it_deletes_a_file() { $path = vfsStream::url('gen/text.txt'); FileKeeper::write($path, 'foo'); $this->assertFileExists($path); FileKeeper::delete($path); $this->assertFileNotExists($path); }
/** * Deletes a field * * @param string $path */ public function delete($path) { FileKeeper::delete($path); }