/** * Return configuration for the tests * * @return \Magento\TestFramework\Performance\Config */ public function getConfig() { if (null === $this->config) { $configFile = "{$this->testsBaseDir}/config.php"; $configFile = file_exists($configFile) ? $configFile : "{$configFile}.dist"; $configData = (require $configFile); $this->config = new Config($configData, $this->testsBaseDir, $this->appBootstrap->getDirList()->getRoot()); } return $this->config; }