PHPUnit 3.6.x rem #395

Closed
tarjei opened this Issue Nov 3, 2011 · 5 comments

Projects

None yet

2 participants

@tarjei
tarjei commented Nov 3, 2011

In the changelog you now got:

"Any output made by a test is now "swallowed"."

This removes usefull functionalty from PHPUnit without adding any kind of workaround to get it back. Please add an option to enable this functionality.

@sebastianbergmann
Owner
➜  ~  cat PrintingTest.php 
<?php
class PrintingTest extends PHPUnit_Framework_TestCase
{
    public function testThatPrintsSomething()
    {
        print 'something';
    }
}


➜  ~  phpunit --debug PrintingTest 
PHPUnit @package_version@ by Sebastian Bergmann.


Starting test 'PrintingTest::testThatPrintsSomething'.
.something

Time: 0 seconds, Memory: 3.75Mb

OK (1 test, 0 assertions)
@tarjei
tarjei commented Nov 3, 2011

Interesting, here's what I got:
tarjei@k4v:~/Viddi/nywly/tmp$ phpunit --debug PrintTest.php
PHPUnit 3.6.0 by Sebastian Bergmann.

Starting test 'PrintingTest::testThatPrintsSomething'.
.

Time: 0 seconds, Memory: 5.50Mb

OK (1 test, 0 assertions)
tarjei@k4v:~/Viddi/nywly/tmp$ cat PrintTest.php

@tarjei
tarjei commented Nov 3, 2011

Crap, I did not see the commit !

@sebastianbergmann
Owner

You did see the commit above the comment with the output? You will not get the output I posted with PHPUnit 3.6.0 but with PHPUnit 3.6.1 once it is released.

@tarjei
tarjei commented Nov 3, 2011

We had a comment race here :) Anyhow, yes the issue is now fixed. Sorry for the extra noise.

@hashar hashar added a commit to hashar/phpunit that referenced this issue Nov 9, 2011
@sebastianbergmann @hashar + hashar Closes #395. 76cc513
@greglamb greglamb pushed a commit to greglamb/phpunit that referenced this issue Apr 19, 2013
@sebastianbergmann Closes #395. fd38786
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment