FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18430&edit=1

ID: 18430
Updated by: daniel.oconnor@gmail.com
Reported By: xandrani at gmail dot com
Summary: Problem when using the --log-tap option for files
that can't be created
-Status: Open
+Status: Wont fix
Type: Bug
Package: PHPUnit
Operating System: Ubuntu 10.10
Package Version: Unknown
PHP Version: 5.3.1
Roadmap Versions:
New Comment:

-Status: Open
+Status: Wont fix
Hi Mike, thanks for reporting this. Unfortunately, phpunit has shifted
over to github, so
Sebastian is unlikely to see this.

You might be better posting to
https://github.com/sebastianbergmann/phpunit/issues

Also, the current version of PHPUnit is higher than 3.4.13 - it may be
worth upgrading
first, then submitting your bug/test case.


Previous Comments:
------------------------------------------------------------------------

[2011-04-11 00:14:54] xandrani

Description:
------------
NOTE: PHP Version is actually 5.3.3 but that option wasn't available in
the drop down menu.

When trying to create a log file in 'tap' format, if the log file can't
be created due to one of the directories in the path not existing, then
a huge load of errors are output instead of a tidy error message.

Test script:
---------------
phpunit --log-tap "/tmp/notfound_com/bob" --verbose unittests


Expected result:
----------------
A warning / error such as folder 'notfound_com' not found. Or file
"/tmp/notfound_com/bob" could not be created.


Actual result:
--------------
PHPUnit 3.4.13 by Sebastian Bergmann.

PHP Warning: fopen(/tmp/notfound_com/bob): failed to open stream: No
such file or directory in /usr/share/php/PHPUnit/Util/Printer.php on
line 105

Warning: fopen(/tmp/notfound_com/bob): failed to open stream: No such
file or directory in /usr/share/php/PHPUnit/Util/Printer.php on line
105
PHP Warning: fwrite() expects parameter 1 to be resource, boolean given
in /usr/share/php/PHPUnit/Util/Printer.php on line 161

Warning: fwrite() expects parameter 1 to be resource, boolean given in
/usr/share/php/PHPUnit/Util/Printer.php on line 161
unittests
TEST_CProcess
.PHP Warning: fwrite() expects parameter 1 to be resource, boolean
given in /usr/share/php/PHPUnit/Util/Printer.php on line 161

Warning: fwrite() expects parameter 1 to be resource, boolean given in
/usr/share/php/PHPUnit/Util/Printer.php on line 161
.PHP Warning: fwrite() expects parameter 1 to be resource, boolean
given in /usr/share/php/PHPUnit/Util/Printer.php on line 161

Warning: fwrite() expects parameter 1 to be resource, boolean given in
/usr/share/php/PHPUnit/Util/Printer.php on line 161
.PHP Warning: fwrite() expects parameter 1 to be resource, boolean
given in /usr/share/php/PHPUnit/Util/Printer.php on line 161

Warning: fwrite() expects parameter 1 to be resource, boolean given in
/usr/share/php/PHPUnit/Util/Printer.php on line 161

------------------------------------------------------------------------

Search Discussions

  • Xandrani at Apr 13, 2011 at 1:35 am
    Edit report at http://pear.php.net/bugs/bug.php?id=18430&edit=1

    ID: 18430
    Updated by: xandrani@gmail.com
    Reported By: xandrani at gmail dot com
    Summary: Problem when using the --log-tap option for files
    that can't be created
    -Status: Wont fix
    +Status: Closed
    Type: Bug
    Package: PHPUnit
    Operating System: Ubuntu 10.10
    Package Version: Unknown
    PHP Version: 5.3.1
    -Assigned To:
    +Assigned To: xandrani
    Roadmap Versions:
    New Comment:

    -Status: Wont fix
    +Status: Closed
    -Assigned To:
    +Assigned To: xandrani
    Thanks Daniel. I have tested on the latest version of phpunit 3.5.13,
    and the bug is fixed! So I've closed this bug.


    Previous Comments:
    ------------------------------------------------------------------------

    [2011-04-13 01:19:16] doconnor

    -Status: Open
    +Status: Wont fix
    Hi Mike, thanks for reporting this. Unfortunately, phpunit has shifted
    over to github, so
    Sebastian is unlikely to see this.

    You might be better posting to
    https://github.com/sebastianbergmann/phpunit/issues

    Also, the current version of PHPUnit is higher than 3.4.13 - it may be
    worth upgrading
    first, then submitting your bug/test case.

    ------------------------------------------------------------------------

    [2011-04-11 00:14:54] xandrani

    Description:
    ------------
    NOTE: PHP Version is actually 5.3.3 but that option wasn't available in
    the drop down menu.

    When trying to create a log file in 'tap' format, if the log file can't
    be created due to one of the directories in the path not existing, then
    a huge load of errors are output instead of a tidy error message.

    Test script:
    ---------------
    phpunit --log-tap "/tmp/notfound_com/bob" --verbose unittests


    Expected result:
    ----------------
    A warning / error such as folder 'notfound_com' not found. Or file
    "/tmp/notfound_com/bob" could not be created.


    Actual result:
    --------------
    PHPUnit 3.4.13 by Sebastian Bergmann.

    PHP Warning: fopen(/tmp/notfound_com/bob): failed to open stream: No
    such file or directory in /usr/share/php/PHPUnit/Util/Printer.php on
    line 105

    Warning: fopen(/tmp/notfound_com/bob): failed to open stream: No such
    file or directory in /usr/share/php/PHPUnit/Util/Printer.php on line
    105
    PHP Warning: fwrite() expects parameter 1 to be resource, boolean given
    in /usr/share/php/PHPUnit/Util/Printer.php on line 161

    Warning: fwrite() expects parameter 1 to be resource, boolean given in
    /usr/share/php/PHPUnit/Util/Printer.php on line 161
    unittests
    TEST_CProcess
    .PHP Warning: fwrite() expects parameter 1 to be resource, boolean
    given in /usr/share/php/PHPUnit/Util/Printer.php on line 161

    Warning: fwrite() expects parameter 1 to be resource, boolean given in
    /usr/share/php/PHPUnit/Util/Printer.php on line 161
    .PHP Warning: fwrite() expects parameter 1 to be resource, boolean
    given in /usr/share/php/PHPUnit/Util/Printer.php on line 161

    Warning: fwrite() expects parameter 1 to be resource, boolean given in
    /usr/share/php/PHPUnit/Util/Printer.php on line 161
    .PHP Warning: fwrite() expects parameter 1 to be resource, boolean
    given in /usr/share/php/PHPUnit/Util/Printer.php on line 161

    Warning: fwrite() expects parameter 1 to be resource, boolean given in
    /usr/share/php/PHPUnit/Util/Printer.php on line 161

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedApr 13, '11 at 12:17a
activeApr 13, '11 at 1:35a
posts2
users2
websitepear.php.net

2 users in discussion

Daniel Oconnor: 1 post Xandrani: 1 post

People

Translate

site design / logo © 2022 Grokbase