Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-201

Tests are not passing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Tests

    Description

      I cloned log4php git repository with anonymous access and tried to run the tests with phpunit. Tests did not pass and I got following error:

      char0n:~/projects/php/log4php$ phpunit
      PHPUnit 3.5.15 by Sebastian Bergmann.

      .............SSSSSS..........SSSSS..........E.................. 63 / 260 ( 24%)
      ............................................................... 126 / 260 ( 48%)
      ............................................................... 189 / 260 ( 72%)
      .......DEBUG - test
      ........................................................ 252 / 260 ( 96%)
      ........

      Time: 4 seconds, Memory: 27.75Mb

      There was 1 error:

      1) LoggerAppenderRollingFileTest::testRolloverWithCompression
      filesize(): stat failed for /home/char0n/projects/php/log4php/target/temp/phpunit/TEST-rolling.txt

      /home/char0n/projects/php/log4php/src/main/php/appenders/LoggerAppenderRollingFile.php:222
      /home/char0n/projects/php/log4php/src/main/php/appenders/LoggerAppenderFile.php:164
      /home/char0n/projects/php/log4php/src/main/php/LoggerAppender.php:84
      /home/char0n/projects/php/log4php/src/main/php/Logger.php:322
      /home/char0n/projects/php/log4php/src/test/php/appenders/LoggerAppenderRollingFileTest.php:156

      FAILURES!
      Tests: 260, Assertions: 944, Errors: 1, Skipped: 11.

      Generating code coverage report, this may take a moment.

      Attachments

        1. test_fix.patch
          1 kB
          Vladimír Gorej
        2. test_fix.patch
          2 kB
          Vladimír Gorej

        Activity

          People

            juice Ivan Habunek
            char0n Vladimír Gorej
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: