<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Gustavo Niemeyer wrote:<br>
<span style="white-space: pre;">&gt; Hello Martin,<br>
&gt; <br>
&gt;&gt;&gt; You can add Mocker <a class="moz-txt-link-rfc2396E" href="http://labix.org/mocker">&lt;http://labix.org/mocker&gt;</a> to
the list. Looks<br>
&gt;&gt;&gt; very well documented and thought out.<br>
&gt;&gt; Ah yes, an omission from my side, I had actually looked at
it. I<br>
&gt;&gt; agree it looks good, but I'd appreciate any pointers to
practical<br>
&gt;&gt; experience.<br>
&gt; <br>
&gt; You won't find many pointers for practical experience with Mocker<br>
&gt; yet, as I've released it publicly only a week ago or so.&nbsp; Even<br>
&gt; then, I do believe it has a superset of the features of all the<br>
&gt; others, and a few more, in a well packed way.<br>
&gt; <br>
&gt; Please let me know if you have any questions or suggestions about<br>
&gt; it.</span><br>
<br>
Hi,<br>
<br>
I come from a mainly php background to the Python world, and I've<br>
mainly been using the pmock library for mocking.<br>
<br>
Since you are working on a new Mock implementation, my wishlist is<br>
that you look at the api that is used by the simpletest package<br>
(simpletest.org) for mocking.<br>
<br>
What I like about the simpletest api is that it doesn't require too<br>
much typing.<br>
<br>
Instead of : (example from pmock)<br>
obj.expects(mock.once()).some_method(mock.eq('myparam'),mock.eq('otherparam')).will(mock.return_value('tt'))<br>
you can have:<br>
obj.expectOnce('some_method', ('myparam','otherparam'), 'tt')<br>
<br>
Which is IMHO both more readable and easier to work with.<br>
<br>
Kind regards,<br>
Tarjei<br>
<br>
<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.6 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a class="moz-txt-link-freetext" href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a><br>
<br>
iD8DBQFHQGFWYVRKCnSvzfIRAjYXAJ9RASWL97IAFfXmkdnaycksNeahtwCfao+b<br>
Rk+2KuOQYfL00Fc+N466OXU=<br>
=IdtK<br>
-----END PGP SIGNATURE-----<br>
<br>
</body>
</html>