|
From: Marcus B. <ma...@la...> - 2003-12-01 00:50:40
|
Hi.
I meant to include lot's of new features, but the current iteration
resulted in a lot of refactoring instead. Most issues with the reporting
of failures are now fixed, especially with mock objects. I am inching
towards multi-lingual support with each version, but am a little way off
yet.
The HTML parsing is slowly getting better. Selection lists can now be
submitted in forms and I have added other minor improvements. Multiple
selections are not yet possible, but are scheduled for the next cycle.
A minor point...
The refactoring has allowed a long desired feature of mine to "drop
out". It is the placing of precise expectations into mocks and test
cases. You can now go...
$mock->expectArguments(new wantedPatternExpectation('/stuff/'));
The comparison will trigger if the only argument is a string matching
the PERL regular expression, here "stuff". This applies to setting of
return values as well.
Your own expectation classes can be created as long as it has the
methods test(), returns boolean, and testMessage(), which has the error
message as a string. They can be used and tested within the test cases
directly with...
$this->assertExpectation($expectation, $actual, $message);
yours, Marcus
--
Marcus Baker, ma...@la..., no...@ap...
|