Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace echo to flushable stdout #19

Closed
wants to merge 0 commits into from

Conversation

andras-tim
Copy link

Added outPath and forceFlush arguments

FYI: This is useful, when a custom phpunit printer explicit flushing
its results.

@johnkary
Copy link
Owner

Hi @andras-tim Do you have an example of a custom PHPUnit printer? Especially one you're using?

@andras-tim
Copy link
Author

Here is an example printer:

class ForceStdoutFlushPrinter extends \PHPUnit_TextUI_ResultPrinter                                                        
{                                                                                                                       
    public function __construct($out = NULL, $verbose = FALSE, $colors = FALSE, $debug = FALSE)                         
    {                                                                                                                   
        parent::__construct('php://stdout', $verbose, $colors, $debug);                                                 
        $this->setAutoFlush(True);                                                                                      
    }                                                                                                                   
}                                                                                                                       

@HonzaMac
Copy link

Hi! Is there any reason, why we don't merge this? :)

@andras-tim andras-tim closed this Mar 27, 2017
andras-tim added a commit to andras-tim/phpunit-speedtrap that referenced this pull request Mar 27, 2017
Added outPath and forceFlush arguments

FYI: This is useful, when a custom phpunit printer explicit flushing
its results.
andras-tim added a commit to andras-tim/phpunit-speedtrap that referenced this pull request Mar 27, 2017
Added outPath and forceFlush arguments

FYI:
This is useful, when a custom phpunit printer explicit flushes its results.
andras-tim added a commit to andras-tim/phpunit-speedtrap that referenced this pull request Mar 29, 2017
Added outPath and forceFlush arguments

FYI:
This is useful, when a custom phpunit printer explicit flushes its results.
andras-tim added a commit to andras-tim/phpunit-speedtrap that referenced this pull request Mar 29, 2017
Added outPath and forceFlush arguments

FYI:
This is useful, when a custom phpunit printer explicit flushes its results.
andras-tim added a commit to andras-tim/phpunit-speedtrap that referenced this pull request Oct 26, 2018
Added outPath and forceFlush arguments

FYI:
This is useful, when a custom phpunit printer explicit flushes its results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants