You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by "Christian Grobmeier (JIRA)" <ji...@apache.org> on 2009/07/28 08:02:14 UTC
[jira] Resolved: (LOG4PHP-66) LoggerConfiguratorBasicTest fails in
"mvn test" but not in phpunit
[ https://issues.apache.org/jira/browse/LOG4PHP-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Grobmeier resolved LOG4PHP-66.
----------------------------------------
Resolution: Fixed
Great catch, thanks much!!
Applied with rv 798413
> LoggerConfiguratorBasicTest fails in "mvn test" but not in phpunit
> ------------------------------------------------------------------
>
> Key: LOG4PHP-66
> URL: https://issues.apache.org/jira/browse/LOG4PHP-66
> Project: Log4php
> Issue Type: Bug
> Components: Code
> Affects Versions: 2.0
> Reporter: Christian Hammers
> Fix For: 2.0
>
> Attachments: LoggerConfiguratorBasicTest-PHPUnit-Fix.diff
>
>
> That was one ugly bug... luckily I had experienced something like this using PHPUnit some years ago:
> Quoting from my patch:
> // As PHPUnit runs all tests in one run, there might be some loggers left over
> // from previous runs. ResetConfiguration() only clears the appenders, it does
> // not remove the categories!
> That explains why a simple "phpunit configurators/LoggerConfiguratorBasicTest" always succeeded but a "mvn test" at least for me never.
> Using print_r I could see two loggers named "test" and "mylogger", strings that are used as logger names in completely different test files.
> bye,
> -christian-
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.