src/PHPCoverFish/CoverFishScanCommand.php
public function prepareExecute(InputInterface $input)
    {
        $this->coverFishHelper = new CoverFishHelper();

        $phpUnitConfigFile = $input->getArgument('phpunit-config');
        if (false === empty($phpUnitConfigFile) &&
            false === $this->coverFishHelper->checkFileOrPath($phpUnitConfigFile)) {
            throw new \Exception(sprintf('phpunit config file "%s" not found! please define your phpunit.xml config file to use (e.g. tests/phpunit.xml)', $phpUnitConfigFile));
        }

        $testPathOrFile = $input->getOption('raw-scan-path');
        if (false === empty($testPathOrFile) &&
            false === $this->coverFishHelper->checkFileOrPath($testPathOrFile)) {
            throw new \Exception(sprintf('test path/file "%s" not found! please define test file path (e.g. tests/)', $testPathOrFile));
        }
    }
public function prepareExecute(InputInterface $input)
    {
        $this->coverFishHelper = new CoverFishHelper();

        $phpUnitConfigFile = $input->getArgument('phpunit-config');
        if (false === empty($phpUnitConfigFile) &&
            false === $this->coverFishHelper->checkFileOrPath($phpUnitConfigFile)) {
            throw new \Exception(sprintf('phpunit config file "%s" not found! please define your phpunit.xml config file to use (e.g. tests/phpunit.xml)', $phpUnitConfigFile));
        }

        $testPathOrFile = $input->getOption('raw-scan-path');
        if (false === empty($testPathOrFile) &&
            false === $this->coverFishHelper->checkFileOrPath($testPathOrFile)) {
            throw new \Exception(sprintf('test path/file "%s" not found! please define test file path (e.g. tests/)', $testPathOrFile));
        }
    }
public function prepareExecute ( InputInterface $ input ) { $ this -> coverFishHelper = new CoverFishHelper ( ) ; $ phpUnitConfigFile = $ input -> getArgument ( 'phpunit-config' ) ; if ( false === empty ( $ phpUnitConfigFile ) && false === $ this -> coverFishHelper -> checkFileOrPath ( $ phpUnitConfigFile ) ) { throw new \ Exception ( sprintf ( 'phpunit config file "%s" not found! please define your phpunit.xml config file to use (e.g. tests/phpunit.xml)' , $ phpUnitConfigFile ) ) ; } $ testPathOrFile = $ input -> getOption ( 'raw-scan-path' ) ; if ( false === empty ( $ testPathOrFile ) && false === $ this -> coverFishHelper -> checkFileOrPath ( $ testPathOrFile ) ) { throw new \ Exception ( sprintf ( 'test path/file "%s" not found! please define test file path (e.g. tests/)' , $ testPathOrFile ) ) ; } }
prepare exec of command "scan"

@param InputInterface $input

@throws \Exception
prepare exec of command scan