public function testFileAppendNonExistentFile() { $this->setExpectedException('Sonrisa\\Component\\FileSystem\\Exceptions\\FileSystemException'); $file = '/THIS/DIRECTORY/DOES/NOT/EXIST/' . $this->filename; File::append($file, 'new data'); }