|
From: Marcus B. <ma...@la...> - 2004-02-02 23:33:35
|
Hi...
Jason Sweat wrote:
> Basically wondering if you can use regex for arguments. I have some functions
> that wrap a bunch of junk around a relativly simple SQL query before it hit's
> my mock, and I would just like to verify the original chunk of SQL is present
> in the first argument.
Very much so...
$connection = &new MockConnection($this);
$connection->expectOnce(array(
new WantedPatternExpectation('/name = [\']Fred[\']/')));
Basically any parameter that is not an expectation class will have an
identical expectation wrapped around it, otherwise the expectation class
is used instead.
yours, Marcus
--
Marcus Baker, ma...@la..., no...@ap...
|