[
https://issues.apache.org/jira/browse/LOG4PHP-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Hammers updated LOG4PHP-66:
-------------------------------------
Attachment: LoggerConfiguratorBasicTest-PHPUnit-Fix.diff
...
> 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.