|
From: Kyohere L. <pr...@gm...> - 2008-08-20 20:22:42
|
Great, thanks ...
On Wed, Aug 20, 2008 at 7:47 PM, Jason Sweat <jsw...@ya...> wrote:
>
>
> ----- Original Message ----
> From: Kyohere Luke <pr...@gm...>
> To: "Help, advice, bugs and workarounds" <
> sim...@li...>
> Sent: Wednesday, August 20, 2008 10:48:15 AM
> Subject: [Simpletest-support] Mocks: How to use regular expressions to test
> the arguments with expectOnce()
>
>
> $form->expectOnce('addElement', array('html', '*ERROR 123*');
>
> How would I do this?
>
>
> Hi Luke,
> Try:
>
> $form->expectOnce('addElement',
> array('html', new WantedPatternExpectation('/ERROR 123/'));
>
> Regards,
> Jason
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Simpletest-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simpletest-support
>
--
-- Luke Kyohere
-- /dev/null
|