UT: Perhaps extend the base phpunit classes?

1 view
Skip to first unread message

Paladin

unread,
Nov 24, 2009, 11:01:14 AM11/24/09
to Joomla! Framework Development
There are some common methods I've found useful in my testing so far,
so useful that I'm thinking of extending the phpunit classes to
include them:

saveFactoryState: copies the pointers from JFactory into a holding
array
restoreFactoryState: copies the saved pointers back into JFactory

saveErrorState: copies the error handling info from JError into a
holding array.
setErrorState: Sets JError error handling info to a given array.

While I'm noodling around with that idea, are there any objections to
it? Any other methods you're finding useful that it could benefit us
to add?

Ian MacLennan

unread,
Nov 24, 2009, 11:14:41 AM11/24/09
to joomla-dev...@googlegroups.com
I think defining a DSL is a great idea.  I've done the same for the Selenium stuff.

Ian
Reply all
Reply to author
Forward
0 new messages