/** * @expectedException Exception */ public function testWriteAllFailure() { $filename = "dirdoesnotexist/{$this->filename}-writeall"; $contents = 'this is a test'; $file = new LocalFile($this->driver, $filename); $file->writeAll($contents); }