MDL-50926 phpunit: Upgrade to phpunit 4.x

This commit is contained in:
Tony Levi
2015-08-11 02:35:11 +02:00
committed by Eloy Lafuente (stronk7)
parent f5d23fc162
commit b80b35d0fc
9 changed files with 734 additions and 105 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ class Hint_ResultPrinter extends PHPUnit_TextUI_ResultPrinter {
}
}
// Fallback if something goes wrong.
parent::__construct(null, false, false, false);
parent::__construct(null, false, self::COLOR_DEFAULT, false);
}
protected function printDefectTrace(PHPUnit_Framework_TestFailure $defect) {
@@ -135,7 +135,7 @@ class Hacky_TextUI_Command_reader extends PHPUnit_TextUI_Command {
$verbose = isset($config['verbose']) ? $config['verbose'] : false;
$verbose = isset($arguments['verbose']) ? $arguments['verbose'] : $verbose;
$colors = isset($config['colors']) ? $config['colors'] : false;
$colors = isset($config['colors']) ? $config['colors'] : Hint_ResultPrinter::COLOR_DEFAULT;
$colors = isset($arguments['colors']) ? $arguments['colors'] : $colors;
$debug = isset($config['debug']) ? $config['debug'] : false;