Hello
Sorry about the STDOUT, of course, self::STDOUT is the right thing. I
seldomly use const...
But another strange thing. The test fails in "mvn test" but not in
plain phpunit:
-=(~/workspace/log4php)$ mvn test
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache log4php.
[INFO] task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
...
[INFO] Executing tasks
[exec] PHPUnit 3.3.17 by Sebastian Bergmann.
[exec]
[exec] .......II..........................................F......WARN - my
message
[exec] WARN - my message
[exec] .. 60 / 85
[exec] WARN - my message
[exec] .IIIIIIII................
[exec]
[exec] Time: 1 second
[exec]
[exec] There was 1 failure:
[exec]
[exec] 1) testResetConfiguration(LoggerConfiguratorBasicTest)
[exec] Failed asserting that <integer:2> matches expected value
<integer:0>.
[exec]
/srv/home/james/workspace/log4php/src/test/php/configurators/LoggerConfiguratorBasicTest.php:55
[exec]
FAILURES!
Tests: 85, Assertions: 218, Failures: 1, Incomplete: 10.
[exec] Generating code coverage report, this may take a moment.
But immediately afterwards:
-=(~/workspace/log4php)$ (cd src/test/php/ && phpunit
configurators/LoggerConfiguratorBasicTest)
PHPUnit 3.3.17 by Sebastian Bergmann.
..
Time: 0 seconds
OK (2 tests, 6 assertions)
bye,
-christian-
Am Mon, 27 Jul 2009 08:08:38 +0200
schrieb Christian Grobmeier <[email protected]>:
> By the way - I just realized that I get exactly the same error when
> applying: https://issues.apache.org/jira/browse/LOG4PHP-59
> Please try to use: self::STDOUT instead of STDOUT, that should do the
> trick
>
> Cheers
>
> On Mon, Jul 27, 2009 at 7:37 AM, Christian
> Grobmeier<[email protected]> wrote:
> > Hi Christian,
> >
> >> [mkdir] Created
> >> dir: /srv/home/james/workspace/log4php/target/surefire-reports
> >> [exec] PHPUnit 3.3.17 by Sebastian Bergmann. [exec]
> >> [exec] .......II...................F.................E....
> >> [xslt]
> >> Processing
> >> /srv/home/james/workspace/log4php/target/surefire-reports/phpunit-testresults.xml
> >> to /srv/home/james/workspace/log4php/target/surefire-reports/xslt.info
> >> [xslt] Loading
> >> stylesheet
> >> /srv/home/james/workspace/log4php/src/test/config/phpunit_to_surefire.xslt
> >> [xslt]
> >> /srv/home/james/workspace/log4php/target/surefire-reports/phpunit-testresults.xml:1:1:
> >> Fatal Error! Error reported by XML
> >
> >
> > the error is not because of a maven problem. Its because you have
> > errors in the testcases:
> > This: .......II...................F.................E....
> > indicates one failure and one error. Even when phpunit goes on for
> > 4 tests after the error, it suddenly breaks down. Check your
> > php.log or activate error output in php.ini. Maybe that brings more
> > light into game. However, phpunit doesn't complete normaly and this
> > is why your report is empty and cannot be transformed.
> > The error might be the same as for buildbot (guessing). Please check
> > out <? phpinfo(); ?> if your PDO drivers for SQlite are activated.
> > Just search for PDO in the output of the tag.
> >
> > A correct output should look like:
> >
> > [exec] PHP 15. LoggerManager::autoload()
> > /Volumes/ANDREW/Projekte/Entwicklung/log4php-commit-trunk/src/main/php/LoggerManager.php:0
> > [exec] ..........................................................
> > 60 / 84 [exec] ..II...........IIIIIIII.
> > [exec]
> > [exec] Time: 0 seconds
> > [exec]
> > OK, but incomplete or skipped tests!
> > Tests: 84, Assertions: 218, Incomplete: 10.
> >
> > Here is another comparison:
> > http://www.substring.no:8080/cruisecontrol/buildresults/log4php?tab=buildResults
> >
> > But not Buildbot, which has the same problems like you have:
> > http://ci.apache.org/projects/log4php/surefire-report.html
> >
> > However, there is still an failure and I don't know why that
> > happens. Its the same, on buildbot and on your enviroment.
> > We need to check out what you have in common with buildbot and the
> > difference to me.
> >
> > I am assuming its some kind of php configuration. Can you plz let me
> > know in which enviroment you are working?
> > I am on Mac Tiger, PHP 5.2.5, PHPUnit 3.3.17.
> > Here is my local php.ini file for comparison:
> > http://grobmeier.de/php.ini
> >
> > This would help much, thanks!
> >
> > Christian
> >