X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=blobdiff_plain;f=tests%2Fphpunit%2Fphpunit.php;h=d83dedba4102fdd45004db2fb8ede04635f5c175;hb=2bd7259a2c88a2bcc30a9217770a64268e161305;hp=fa249b2244bfaba7f3db2dace6efd94d349152fd;hpb=4b2f95bed5a9ae0a917264abed2ba1fd9fb78f3c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/phpunit.php b/tests/phpunit/phpunit.php index fa249b2244..d83dedba41 100755 --- a/tests/phpunit/phpunit.php +++ b/tests/phpunit/phpunit.php @@ -29,6 +29,7 @@ class PHPUnitMaintClass extends Maintenance { public function __construct() { parent::__construct(); + $this->setAllowUnregisteredOptions( true ); $this->addOption( 'with-phpunitclass', 'Class name of the PHPUnit entry point to use', @@ -80,7 +81,7 @@ class PHPUnitMaintClass extends Maintenance { [ '--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' );