|
From: Kyohere L. <pr...@gm...> - 2008-08-20 15:48:17
|
I would like to use expectOnce(...) but one of the arguments will be a long
string, which will include an Error Code that I would like to test for.
e.g. if the function call I want to set for would be something like
$form->addElement('html', '<font color="red"><b>ERROR CODE: ERROR
MESSAGE</b></font>');
where ERROR CODE is set by the calling function.
How do I test that ERROR CODE is equal to 123, for example. I've already
created a Mock of the $form object, and want to do something like
$form->expectOnce('addElement', array('html', '*ERROR 123*');
How would I do this?
Thanks.
Luke
|