/** * Run the db:test check * * @param InputInterface $input CLI input * @param OutputInterface $output CLI output * * @return void */ protected function execute(InputInterface $input, OutputInterface $output) { $config = $input->getArgument('config'); if (is_null($config)) { $config = 'db-test.xml.dist'; } Test::check(new TestRunner($config)); }
/** * Run the mongo:php check * * @param InputInterface $input CLI input * @param OutputInterface $output CLI output * * @return void */ protected function execute(InputInterface $input, OutputInterface $output) { $config = $input->getArgument('config'); if (is_null($config)) { $config = 'php-mysql.json.dist'; } if (Test::check(new MySQLCheck($config))) { echo "All tests succeeded!\n"; } else { echo "Some tests failed. Please check.\n"; } }