Closed phing-issues-importer closed 6 years ago
Trac update at 20091117T04:47:36: anonymous changed attachment from "" to "bug_works.xml"
Trac update at 20091117T04:49:15: anonymous changed attachment from "" to "bug_fails.xml"
Trac update at 20091117T04:49:25: anonymous changed attachment from "" to "bug_fails2.xml"
Trac update at 20091125T19:25:52:
You are completely right - the ambiguity lies in the distinction between user and system properties, something we need to look at properly. Therefore I'm moving this to the 3.0 branch for now. Thanks for the report!
- mrook changed keywords from "PhpUnitTask, boolean, ifTask" to "properties, PhpUnitTask, boolean, ifTask"
- mrook changed milestone from "2.4.0RC3" to "3.0"
- mrook changed priority from "minor" to "major"
Trac update at 20110619T06:23:06: mp commented:
Without having run the examples provided >:-) I'd guess the problem is that the task calls setNewProperty:
324 $this->project->setNewProperty($this->failureproperty, true);
that should just be setProperty().
Of course it still fails if you set that property on the command line. Don't think that is an issue.
Trac update at 20110619T06:24:12: mp changed cc from "" to "Mp@webfactory.de"
Trac update at 20110622T09:20:32: mp commented:
(In [1177]) Remove automagical conversion of strings to booleans. See http://phing.tigris.org/ds/viewMessage.do?dsForumId=1079&dsMessageId=2771568.
Refs #539, #534, https://www.phing.info/trac/ticket/376, #533.
Introduces a BC break for existing tasks.
Trac update at 20110622T09:25:59: mrook changed milestone from "TBD" to "2.5.0"
Trac update at 20110622T09:26:10: mrook changed owner from "mrook" to "mp"
Trac update at 20110622T14:05:34:
(In [1185]) Closes #383.
Note that you should use
to check for failures.
- mp changed resolution from "" to "fixed"
- mp changed status from "new" to "closed"
Trac update at 20150104T20:28:18:
Re-opening to track rebuilding of the 3.0 branch.
- mrook changed resolution from "fixed" to ""
- mrook changed status from "closed" to "reopened"
Trac update at 20161007T08:28:55:
Milestone renamed
- mrook changed milestone from "3.0" to "4.0"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.
Hi all,
I discovered an anomaly in the IfTask in combination with the failureproperty of the PhpUnittestTask.
The environment is Phing 2.3.3 with PHPUnit 3.3.17 on Ubuntu 9.10 using bash.
If you initialize the property used as failureproperty in the PhpUnittestTask through a PropertyTask first, the IfTask does no longer work as expected. I attached three example build scripts to clarify this, but in a nutshell it is like this:
Assuming
<phpunit failureproperty="unittestFailed">
andwe have the following behaviour:
This is not really a bug in my opinion, more a unclean behaviour. If might lead to incorrect behaviour however, if one and the same property (in this case unittestFailed) is used as common status flag for multiple tests which all have to go through.
Regards, Dominique
http://www.st/webdevelopment.de
Migrated from https://www.phing.info/trac/ticket/383