Dmitry Naumenko
7 years ago
committed by
Alexander Makarov
25 changed files with 185 additions and 48 deletions
@ -0,0 +1,38 @@
|
||||
<?php |
||||
/** |
||||
* @link http://www.yiiframework.com/ |
||||
* @copyright Copyright (c) 2008 Yii Software LLC |
||||
* @license http://www.yiiframework.com/license/ |
||||
*/ |
||||
|
||||
namespace yiiunit; |
||||
|
||||
/** |
||||
* Class ResultPrinter overrides \PHPUnit\TextUI\ResultPrinter constructor |
||||
* to change default output to STDOUT and prevent some tests from fail when |
||||
* they can not be executed after headers have been sent. |
||||
*/ |
||||
class ResultPrinter extends \PHPUnit\TextUI\ResultPrinter |
||||
{ |
||||
public function __construct( |
||||
$out = null, |
||||
$verbose = false, |
||||
$colors = \PHPUnit\TextUI\ResultPrinter::COLOR_DEFAULT, |
||||
$debug = false, |
||||
$numberOfColumns = 80, |
||||
$reverse = false |
||||
) { |
||||
if ($out === null) { |
||||
$out = STDOUT; |
||||
} |
||||
|
||||
parent::__construct($out, $verbose, $colors, $debug, $numberOfColumns, $reverse); |
||||
} |
||||
|
||||
public function flush() |
||||
{ |
||||
if ($this->out !== STDOUT) { |
||||
parent::flush(); |
||||
} |
||||
} |
||||
} |
@ -1,2 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<tag></tag> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<application> |
||||
<message> |
||||
<from>SilverFire</from> |
||||
<to>World</to> |
||||
<body>Hello, world!</body> |
||||
</message> |
||||
</application> |
||||
|
Loading…
Reference in new issue