public function __construct() {
parent::__construct();
+ $this->setAllowUnregisteredOptions( true );
$this->addOption(
'with-phpunitclass',
'Class name of the PHPUnit entry point to use',
[ '--configuration', $IP . '/tests/phpunit/suite.xml' ] );
}
- $phpUnitClass = 'PHPUnit_TextUI_Command';
+ $phpUnitClass = PHPUnit_TextUI_Command::class;
if ( $this->hasOption( 'with-phpunitclass' ) ) {
$phpUnitClass = $this->getOption( 'with-phpunitclass' );