/** * @test */ public function shouldGenerateConfigFromJsonFile() { $basePath = __DIR__ . '/Value/'; $config = JsonConfigReader::readFile($basePath . 'config.json'); $this->assertConfig($config, $basePath); }
protected function execute(InputInterface $input, OutputInterface $output) { $this->setUp($input, $output); $checker = new Checker(JsonConfigReader::readFile($input->getOption('config'))); $checker->check(); }