private function mockGetFolderConfigWithBrokenSetup($folder, $configName, $config, $configItems, $level, $exception) { $this->configParser->expects($this->any())->method('getFolderConfig')->with($folder, $configName, $config, $configItems, $level)->willThrowException($exception); }