public function ExporterBase::testSaveFileToUnwriteableDirThrows in Loft Data Grids 7.2
@expectedException RuntimeException
File
- vendor/
aklump/ loft_data_grids/ tests/ phpunit/ ExporterBase.php, line 39 - Tests for the YamlExporter class
Class
- ExporterBase
- Class ExporterBase
Namespace
AKlump\LoftDataGridsCode
public function testSaveFileToUnwriteableDirThrows() {
chmod($this->sandbox, 0444);
try {
$this->exporter
->saveFile($this->sandbox);
} catch (\Exception $exception) {
chmod($this->sandbox, 0777);
throw $exception;
}
}