/** * @test */ public function shouldThrowExceptionWhenNoSuites() { $this->setExpectedException('\\RuntimeException', 'Config has no suites'); JsonConfigReader::read('{}'); }
protected function execute(InputInterface $input, OutputInterface $output) { $this->setUp($input, $output); $checker = new Checker(JsonConfigReader::readFile($input->getOption('config'))); $checker->check(); }