<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Static + Unit Tests = Arrrghhh!</title>
	<atom:link href="http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/</link>
	<description>it and development at europe's leading clubbing community</description>
	<lastBuildDate>Mon, 09 Aug 2010 07:13:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: lejoe</title>
		<link>http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/comment-page-1/#comment-10004</link>
		<dc:creator>lejoe</dc:creator>
		<pubDate>Tue, 19 Aug 2008 16:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/?p=352#comment-10004</guid>
		<description>And patrice suggested me today to read this one : http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/

Really simple to understand and really helpfull</description>
		<content:encoded><![CDATA[<p>And patrice suggested me today to read this one : <a href="http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/" rel="nofollow">http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/</a></p>
<p>Really simple to understand and really helpfull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maarten Manders&#8217; Blog: Static + Unit Tests = Arrrghhh! &#124; Development Blog With Code Updates : Developercast.com</title>
		<link>http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/comment-page-1/#comment-8798</link>
		<dc:creator>Maarten Manders&#8217; Blog: Static + Unit Tests = Arrrghhh! &#124; Development Blog With Code Updates : Developercast.com</dc:creator>
		<pubDate>Fri, 08 Aug 2008 21:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/?p=352#comment-8798</guid>
		<description>[...] a hint from Maarten Manders when renaming and moving around your unit testing order:   It&#8217;s [...]</description>
		<content:encoded><![CDATA[<p>[...] a hint from Maarten Manders when renaming and moving around your unit testing order:   It&#8217;s [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel O'Connor</title>
		<link>http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/comment-page-1/#comment-8700</link>
		<dc:creator>Daniel O'Connor</dc:creator>
		<pubDate>Fri, 08 Aug 2008 04:02:27 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/?p=352#comment-8700</guid>
		<description>Force other people to read about:

http://misko.hevery.com/2008/07/08/how-to-think-about-the-new-operator/

and

http://misko.hevery.com/2008/07/30/top-10-things-which-make-your-code-hard-to-test/

Apply stick liberally.</description>
		<content:encoded><![CDATA[<p>Force other people to read about:</p>
<p><a href="http://misko.hevery.com/2008/07/08/how-to-think-about-the-new-operator/" rel="nofollow">http://misko.hevery.com/2008/07/08/how-to-think-about-the-new-operator/</a></p>
<p>and</p>
<p><a href="http://misko.hevery.com/2008/07/30/top-10-things-which-make-your-code-hard-to-test/" rel="nofollow">http://misko.hevery.com/2008/07/30/top-10-things-which-make-your-code-hard-to-test/</a></p>
<p>Apply stick liberally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian Bergmann</title>
		<link>http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/comment-page-1/#comment-8682</link>
		<dc:creator>Sebastian Bergmann</dc:creator>
		<pubDate>Thu, 07 Aug 2008 22:51:32 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/?p=352#comment-8682</guid>
		<description>There is a branch in PHPUnit&#039;s Subversion repository that runs each test in a separate PHP process. This branch will be merged for either PHPUnit 3.4 or PHPUnit 4.0.

You can also follow Lukas&#039; advice and write your tests that exercise static methods as PHPT -- and run those through PHPUnit. PHPUnit&#039;s own test suite is a good example of a mix between PHPUnit and PHPT tests.</description>
		<content:encoded><![CDATA[<p>There is a branch in PHPUnit&#8217;s Subversion repository that runs each test in a separate PHP process. This branch will be merged for either PHPUnit 3.4 or PHPUnit 4.0.</p>
<p>You can also follow Lukas&#8217; advice and write your tests that exercise static methods as PHPT &#8212; and run those through PHPUnit. PHPUnit&#8217;s own test suite is a good example of a mix between PHPUnit and PHPT tests.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lejoe</title>
		<link>http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/comment-page-1/#comment-8677</link>
		<dc:creator>lejoe</dc:creator>
		<pubDate>Thu, 07 Aug 2008 22:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/?p=352#comment-8677</guid>
		<description>And you can beat your singleton with this  : http://paste.pocoo.org/show/81547/ and use $forcereload for tests</description>
		<content:encoded><![CDATA[<p>And you can beat your singleton with this  : <a href="http://paste.pocoo.org/show/81547/" rel="nofollow">http://paste.pocoo.org/show/81547/</a> and use $forcereload for tests</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: troelskn</title>
		<link>http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/comment-page-1/#comment-8675</link>
		<dc:creator>troelskn</dc:creator>
		<pubDate>Thu, 07 Aug 2008 22:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/?p=352#comment-8675</guid>
		<description>So first you ask for a stick, and in the next sentence you ask for a way to hide from it? Doesn&#039;t make much sense to me.

Your tests are speaking to you. They are saying &quot;Please don&#039;t use global variables, you are hurting us&quot;. Listen to them.</description>
		<content:encoded><![CDATA[<p>So first you ask for a stick, and in the next sentence you ask for a way to hide from it? Doesn&#8217;t make much sense to me.</p>
<p>Your tests are speaking to you. They are saying &#8220;Please don&#8217;t use global variables, you are hurting us&#8221;. Listen to them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lejoe</title>
		<link>http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/comment-page-1/#comment-8674</link>
		<dc:creator>lejoe</dc:creator>
		<pubDate>Thu, 07 Aug 2008 21:59:44 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/?p=352#comment-8674</guid>
		<description>I find writing tests are one of the challenging part of programming and not boring at all! It&#039;s the moment where you set fails that you are going to fight afterwards with your code!

Never had much problem with tests dependencies. A good use of setUp and teardDown and testing only one function (even one use case of a function) per test really makes it.

Good luck ;)</description>
		<content:encoded><![CDATA[<p>I find writing tests are one of the challenging part of programming and not boring at all! It&#8217;s the moment where you set fails that you are going to fight afterwards with your code!</p>
<p>Never had much problem with tests dependencies. A good use of setUp and teardDown and testing only one function (even one use case of a function) per test really makes it.</p>
<p>Good luck <img src='http://techblog.tilllate.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Strojny</title>
		<link>http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/comment-page-1/#comment-8671</link>
		<dc:creator>Lars Strojny</dc:creator>
		<pubDate>Thu, 07 Aug 2008 21:39:16 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/?p=352#comment-8671</guid>
		<description>1.) Have a continuous integration solution in place. This is the reference where the tests have to pass. &quot;Works for me&quot; is no longer an excuse than.
2.) Use the --repeat Option and run the test suite twice in the same context. This will help you to fix *a lot* of setup/teardown issues.
3.) Don&#039;t use singletons, use a service locator and dependency injection.
4.) Mock and stub the pain away.
5.) Various (motivating) punishments come in my mind, although I never implemented one :)</description>
		<content:encoded><![CDATA[<p>1.) Have a continuous integration solution in place. This is the reference where the tests have to pass. &#8220;Works for me&#8221; is no longer an excuse than.<br />
2.) Use the &#8211;repeat Option and run the test suite twice in the same context. This will help you to fix *a lot* of setup/teardown issues.<br />
3.) Don&#8217;t use singletons, use a service locator and dependency injection.<br />
4.) Mock and stub the pain away.<br />
5.) Various (motivating) punishments come in my mind, although I never implemented one <img src='http://techblog.tilllate.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward Z. Yang</title>
		<link>http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/comment-page-1/#comment-8670</link>
		<dc:creator>Edward Z. Yang</dc:creator>
		<pubDate>Thu, 07 Aug 2008 21:28:12 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/?p=352#comment-8670</guid>
		<description>Agreed with Lukas. Either that, or REFACTOR!</description>
		<content:encoded><![CDATA[<p>Agreed with Lukas. Either that, or REFACTOR!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher</title>
		<link>http://techblog.tilllate.com/2008/08/07/static-unit-tests-arrrghhh/comment-page-1/#comment-8658</link>
		<dc:creator>Christopher</dc:creator>
		<pubDate>Thu, 07 Aug 2008 20:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/?p=352#comment-8658</guid>
		<description>Don&#039;t use Singletons, especially static Singletons ... or static anything else ... you always end up removing them anyway, so why start.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t use Singletons, especially static Singletons &#8230; or static anything else &#8230; you always end up removing them anyway, so why start.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

