src/PHPCoverFish/CoverFishScanCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->showExecTitle($input, $output);
        $this->prepareExecute($input);

        $cliOptions = array(
            'sys_phpunit_config' => $input->getArgument('phpunit-config'),
            'sys_phpunit_config_test_suite' => $input->getOption('phpunit-config-suite'),
            'sys_stop_on_error' => $input->getOption('stop-on-error'),
            'sys_stop_on_failure' => $input->getOption('stop-on-failure'),
            'raw_scan_source' => $input->getOption('raw-scan-path'),
            'raw_scan_autoload_file' => $input->getOption('raw-autoload-file'),
            'raw_scan_exclude_path' => $input->getOption('raw-exclude-path'),
        );

        $outOptions = array(
            'out_verbose' => $input->getOption('verbose'),
            'out_format' => $input->getOption('output-format'),
            'out_level' => (int) $input->getOption('output-level'),
            'out_no_ansi' => $input->getOption('no-ansi'),
            'out_no_echo' => $input->getOption('quiet'),
        );

        try {
            $scanner = new CoverFishScanner($cliOptions, $outOptions, $output);
            $scanner->analysePHPUnitFiles();
        } catch (CoverFishFailExit $e) {
            return CoverFishFailExit::RETURN_CODE_SCAN_FAIL;
        }

        return 0;
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->showExecTitle($input, $output);
        $this->prepareExecute($input);

        $cliOptions = array(
            'sys_phpunit_config' => $input->getArgument('phpunit-config'),
            'sys_phpunit_config_test_suite' => $input->getOption('phpunit-config-suite'),
            'sys_stop_on_error' => $input->getOption('stop-on-error'),
            'sys_stop_on_failure' => $input->getOption('stop-on-failure'),
            'raw_scan_source' => $input->getOption('raw-scan-path'),
            'raw_scan_autoload_file' => $input->getOption('raw-autoload-file'),
            'raw_scan_exclude_path' => $input->getOption('raw-exclude-path'),
        );

        $outOptions = array(
            'out_verbose' => $input->getOption('verbose'),
            'out_format' => $input->getOption('output-format'),
            'out_level' => (int) $input->getOption('output-level'),
            'out_no_ansi' => $input->getOption('no-ansi'),
            'out_no_echo' => $input->getOption('quiet'),
        );

        try {
            $scanner = new CoverFishScanner($cliOptions, $outOptions, $output);
            $scanner->analysePHPUnitFiles();
        } catch (CoverFishFailExit $e) {
            return CoverFishFailExit::RETURN_CODE_SCAN_FAIL;
        }

        return 0;
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { $ this -> showExecTitle ( $ input , $ output ) ; $ this -> prepareExecute ( $ input ) ; $ cliOptions = array ( 'sys_phpunit_config' => $ input -> getArgument ( 'phpunit-config' ) , 'sys_phpunit_config_test_suite' => $ input -> getOption ( 'phpunit-config-suite' ) , 'sys_stop_on_error' => $ input -> getOption ( 'stop-on-error' ) , 'sys_stop_on_failure' => $ input -> getOption ( 'stop-on-failure' ) , 'raw_scan_source' => $ input -> getOption ( 'raw-scan-path' ) , 'raw_scan_autoload_file' => $ input -> getOption ( 'raw-autoload-file' ) , 'raw_scan_exclude_path' => $ input -> getOption ( 'raw-exclude-path' ) , ) ; $ outOptions = array ( 'out_verbose' => $ input -> getOption ( 'verbose' ) , 'out_format' => $ input -> getOption ( 'output-format' ) , 'out_level' => ( int ) $ input -> getOption ( 'output-level' ) , 'out_no_ansi' => $ input -> getOption ( 'no-ansi' ) , 'out_no_echo' => $ input -> getOption ( 'quiet' ) , ) ; try { $ scanner = new CoverFishScanner ( $ cliOptions , $ outOptions , $ output ) ; $ scanner -> analysePHPUnitFiles ( ) ; } catch ( CoverFishFailExit $ e ) { return CoverFishFailExit :: RETURN_CODE_SCAN_FAIL ; } return 0 ; }
exec command "scan"

@param InputInterface  $input
@param OutputInterface $output

@return string
@throws \Exception
exec command scan