Comment #1 by tswicegood:
This may not be implemented. The current behavior of a PHPT test is
not to utilize a
section unless it is explicitly defined. This makes the tests
independent of the
options they were invoked with. If implemented, a "--alwayshave
<section>" argument
would need to be added to specify that a section should always have a particular
section, even if it was not explicitly stated.
If implemented, this requires the following tasks:
* implement PHPT_Controller_CLI_Processors_AlwayshaveProcessor to
instantiate default
PHPT_Section_INI
* add some value to the Registry to specify default sections
* change PHTP_Case_Parser add any default sections that aren't present
and/or add
them at the PHPT_Case_Validator stage
* add PHPT_SectionList::add(PHPT_Section $section) method for adding
new sections
after a SectionList is instantiated
Issue attribute updates:
Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #2 by tswicegood:
This will be implemented, I'm just not sure how I will implement it
yet. I have situations where I want to auto
include files such as _skipif.inc if a SKIPIF section has not been
specified. The code will probably be simplified
from the above to something like a PHPT_SectionList_Factory that takes
an array of Section objects and adds any
"missing" sections to it.
Issue attribute updates:
Status: Accepted
Labels: -Priority-Low Priority-Medium