Issue 8 in phpt: Tests without an INI section don't received --ini switches

0 views
Skip to first unread message

codesite...@google.com

unread,
Dec 17, 2007, 11:36:55 PM12/17/07
to phpt-...@googlegroups.com
Issue 8: Tests without an INI section don't received --ini switches
http://code.google.com/p/phpt/issues/detail?id=8

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

codesite...@google.com

unread,
Dec 17, 2007, 11:36:55 PM12/17/07
to phpt-...@googlegroups.com

codesite...@google.com

unread,
Dec 20, 2007, 8:26:08 PM12/20/07
to phpt-...@googlegroups.com
Issue 8: Tests without an INI section don't received --ini switches
http://code.google.com/p/phpt/issues/detail?id=8

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

codesite...@google.com

unread,
Dec 20, 2007, 8:26:08 PM12/20/07
to phpt-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages