public function testAddMessageFileToExportExceptionHandling() { $filePath = "/tmp/x/y/z/does-not-exist"; $this->setExpectedException('Illuminate\\Filesystem\\FileNotFoundException', "File not found: {$filePath}"); JsLocalizationHelper::addMessageFileToExport($filePath, 'xyz::'); }