private function resolveOptions(InputInterface $input)
    {
        $options = [];
        if ($this->supportsCoverage() && $input->getOption('coverage-text')) {
            $options[] = '--coverage-text';
        }
        if ($this->supportsCoverage() && $input->getOption('coverage-clover')) {
            $options[] = sprintf('--coverage-clover %s/coverage.xml', getcwd());
        }
        if (is_file($this->plugin->directory.'/phpunit.xml')) {
            $options[] = sprintf('--configuration %s', $this->plugin->directory);
        } else {
            $options[] = sprintf('--testsuite %s_testsuite', $this->plugin->getComponent());
        }

        return implode(' ', $options);
    }
private function resolveOptions(InputInterface $input)
    {
        $options = [];
        if ($this->supportsCoverage() && $input->getOption('coverage-text')) {
            $options[] = '--coverage-text';
        }
        if ($this->supportsCoverage() && $input->getOption('coverage-clover')) {
            $options[] = sprintf('--coverage-clover %s/coverage.xml', getcwd());
        }
        if (is_file($this->plugin->directory.'/phpunit.xml')) {
            $options[] = sprintf('--configuration %s', $this->plugin->directory);
        } else {
            $options[] = sprintf('--testsuite %s_testsuite', $this->plugin->getComponent());
        }

        return implode(' ', $options);
    }
private function resolveOptions ( InputInterface $ input ) { $ options = [ ] ; if ( $ this -> supportsCoverage ( ) && $ input -> getOption ( 'coverage-text' ) ) { $ options [ ] = '--coverage-text' ; } if ( $ this -> supportsCoverage ( ) && $ input -> getOption ( 'coverage-clover' ) ) { $ options [ ] = sprintf ( '--coverage-clover %s/coverage.xml' , getcwd ( ) ) ; } if ( is_file ( $ this -> plugin -> directory . '/phpunit.xml' ) ) { $ options [ ] = sprintf ( '--configuration %s' , $ this -> plugin -> directory ) ; } else { $ options [ ] = sprintf ( '--testsuite %s_testsuite' , $ this -> plugin -> getComponent ( ) ) ; } return implode ( ' ' , $ options ) ; }
Resolve options for PHPUnit command.

@param InputInterface $input

@return string
Resolve options for PHPUnit command .