<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Mocker 0.10 and trivial patch-mocking of existing objects</title>
	<atom:link href="http://blog.labix.org/2007/12/09/mocker-010-and-trivial-patch-mocking-of-existing-objects/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.labix.org/2007/12/09/mocker-010-and-trivial-patch-mocking-of-existing-objects</link>
	<description>by Gustavo Niemeyer</description>
	<pubDate>Thu, 21 Aug 2008 10:39:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Gustavo Niemeyer</title>
		<link>http://blog.labix.org/2007/12/09/mocker-010-and-trivial-patch-mocking-of-existing-objects#comment-25594</link>
		<dc:creator>Gustavo Niemeyer</dc:creator>
		<pubDate>Mon, 07 Jan 2008 13:39:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labix.org/2007/12/09/mocker-010-and-trivial-patch-mocking-of-existing-objects/#comment-25594</guid>
		<description>Yes, and no.

For sure I'd recommend against doing it if there are better alternatives (in most cases there are).

But notice that there is a whole thread of testing which advice more than only checking input and output (see Mocks Aren't Stubs).  Also, in case of non-idempotent methods, input/output may not be enough.

With that in mind, Mocker offers the feature.  It's up to the developer to understand when it's a good idea and when it's not.</description>
		<content:encoded><![CDATA[<p>Yes, and no.</p>
<p>For sure I&#8217;d recommend against doing it if there are better alternatives (in most cases there are).</p>
<p>But notice that there is a whole thread of testing which advice more than only checking input and output (see Mocks Aren&#8217;t Stubs).  Also, in case of non-idempotent methods, input/output may not be enough.</p>
<p>With that in mind, Mocker offers the feature.  It&#8217;s up to the developer to understand when it&#8217;s a good idea and when it&#8217;s not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Altman</title>
		<link>http://blog.labix.org/2007/12/09/mocker-010-and-trivial-patch-mocking-of-existing-objects#comment-24929</link>
		<dc:creator>Patrick Altman</dc:creator>
		<pubDate>Thu, 03 Jan 2008 14:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labix.org/2007/12/09/mocker-010-and-trivial-patch-mocking-of-existing-objects/#comment-24929</guid>
		<description>Cool tool. 

However, isnt your use case invalid from the point of method encapsulation in that we should only be concerned with the results of a method call not how that method goes about its work to produce the results. The caller should depend on the "how" a method works only what inputs are and what expected outputs should be. 

No?</description>
		<content:encoded><![CDATA[<p>Cool tool. </p>
<p>However, isnt your use case invalid from the point of method encapsulation in that we should only be concerned with the results of a method call not how that method goes about its work to produce the results. The caller should depend on the &#8220;how&#8221; a method works only what inputs are and what expected outputs should be. </p>
<p>No?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
