<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Mock on Hashbang.ca</title>
		<link>https://hashbang.ca/tag/mock</link>
		<description>Recent content in Mock on Hashbang.ca</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Thu, 26 Jul 2012 20:24:00 -0400</lastBuildDate>
		
			<atom:link href="https://hashbang.ca/tag/mock/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Mocking LWP::UserAgent properly</title>
				<link>https://hashbang.ca/post/mocking-lwpuseragent-properly</link>
				<pubDate>Thu, 26 Jul 2012 20:24:00 -0400</pubDate>
				<guid>https://hashbang.ca/post/mocking-lwpuseragent-properly/</guid>
				<description>&lt;p&gt;This is an update to an &lt;a href=&#34;https://hashbang.ca/post/mocking-lwpuseragent&#34;&gt;earlier post&lt;/a&gt; I wrote about the adventures I had in creating and using a mock &lt;code&gt;LWP::UserAgent&lt;/code&gt; for testing purposes. The ever-vigilant mst overheard a conversation on the same topic, and jumped in. He pointed out that &lt;code&gt;Test::MockObject&lt;/code&gt; (and everything using it) overrides &lt;code&gt;UNIVERSAL::isa&lt;/code&gt; in a way that hides bugs. Because it can hide bugs, it is &lt;strong&gt;definitely not safe&lt;/strong&gt; to use in a test suite, where you&amp;rsquo;re trying to uncover bugs.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Mocking LWP::UserAgent</title>
				<link>https://hashbang.ca/post/mocking-lwpuseragent</link>
				<pubDate>Fri, 23 Sep 2011 23:41:00 -0400</pubDate>
				<guid>https://hashbang.ca/post/mocking-lwpuseragent/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Important update:&lt;/strong&gt; Don&amp;rsquo;t follow this advice, follow &lt;a href=&#34;https://hashbang.ca/post/mocking-lwpuseragent-properly&#34;&gt;that&lt;/a&gt; advice!&lt;/p&gt;&#xA;&lt;p&gt;chromatic mentioned how to use dependency injection in &lt;a href=&#34;http://www.modernperlbooks.com/mt/2011/08/youre-already-using-dependency-injection.html&#34;&gt;&lt;em&gt;You&amp;rsquo;re Already Using Dependency Injection&lt;/em&gt;&lt;/a&gt;. Although I had read that when he posted it, I hadnt actually ever &lt;em&gt;done&lt;/em&gt; it. That is, until today.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
