Hello

Thanks, upgrading to PHPUnit 3.3.17 helped. Now I get the following after a 
"mvn clean && mvn install".
The referred phpunit-testresults.xml is empty. The rest of mvn install and mvn 
site work after commenting
out the surefire stuff.

Executing phpunit by hand give no other output than the one below. Maybe the 
--log-xml has to be defined
in the phpunit.xml as well? But can't be if it works for you...

[INFO] Building Apache log4php.
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [antrun:run {execution: test}]
[INFO] Executing tasks
    [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 parser Cause: 
org.xml.sax.SAXParseException: Premature end of file.
     [xslt] Failed to process 
/srv/home/james/workspace/log4php/target/surefire-reports/phpunit-testresults.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR

bye,

-christian-



Am Sun, 26 Jul 2009 13:45:13 +0200
schrieb Christian Grobmeier <[email protected]>:

> Strange, for me that works.
> I am using PHPUnit 3.3.16, maven is the same.
> Can you try commenting the testcase out? Do the others work then?
> There is a classloader method, you maybe want to see if
> LoggerAppenderNull is defined there.
> 
> Cheers
> 
> >     [exec] Fatal error: Class 'LoggerAppenderNull' not found
> > in /srv/home/james/workspace/log4php/src/test/php/LoggerLoggingEventTest.php
> > on line 74 [exec] Result: 255 [INFO]
> >
> > I'm using PHPUnit 3.3.5 and mvn 2.0.9. Running phpunit from inside
> > the src/test/php directory works without errors!
> >
> > bye,
> >
> > -christian-
> >

Reply via email to