|
From: Jason S. <jsw...@ya...> - 2004-02-08 05:34:46
|
--- Marcus Baker <ma...@la...> wrote:
> Hi...
>
> Jason Sweat wrote:
> > Well, I think we should at least detect if an array was supplied, and fail
> the
> > test if something other than an array was provided rather than letting the
> test
> > have a php error for invalid argument to the foreach.
>
> Oh yeah. That would be a good idea wouldn't it :-/
Okay, added:
function testBadArgParameter() {
$mock = &new MockDummy($this);
$mock->expectArguments("aMethod", "foo");
$this->assertErrorPattern('/\$args.*not an array/i');
$mock->aMethod();
$mock->tally();
}
to TestOfMockExpectations Unit Test Case
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
|