<?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: Testing Components In CakePHP</title>
	<atom:link href="http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
	<description>Facebook should&#039;ve be written in unicornSchemaLang, because everyone *knows* that PHP is no good for anything, right?</description>
	<lastBuildDate>Fri, 12 Mar 2010 00:36:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
		<item>
		<title>By: Motin</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/comment-page-1/#comment-11720</link>
		<dc:creator>Motin</dc:creator>
		<pubDate>Tue, 31 Mar 2009 18:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/#comment-11720</guid>
		<description>Thanks for your code! It didn&#039;t work however with the 1.2 Stable version, so here is a version that conforms more with the 1.2 code:

http://bin.cakephp.org/saved/44439

PS Feel free to remove my above two comments with the code that isn&#039;t displayed correctly</description>
		<content:encoded><![CDATA[<p>Thanks for your code! It didn&#8217;t work however with the 1.2 Stable version, so here is a version that conforms more with the 1.2 code:</p>
<p><a href="http://bin.cakephp.org/saved/44439" rel="nofollow">http://bin.cakephp.org/saved/44439</a></p>
<p>PS Feel free to remove my above two comments with the code that isn&#8217;t displayed correctly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Motin</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/comment-page-1/#comment-11719</link>
		<dc:creator>Motin</dc:creator>
		<pubDate>Tue, 31 Mar 2009 18:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/#comment-11719</guid>
		<description>It didn&#039;t seem to work posting code here. Trying once again:

Controller =&amp; new EmailComponentTestController();
		restore_error_handler();
		
		$this-&gt;Controller-&gt;constructClasses();
		$this-&gt;Controller-&gt;Component-&gt;initialize($this-&gt;Controller);
		$this-&gt;Controller-&gt;beforeFilter();
		$this-&gt;Controller-&gt;Component-&gt;startup($this-&gt;Controller);
		
		set_error_handler(&#039;simpleTestErrorHandler&#039;);
		$this-&gt;Controller-&gt;Email-&gt;startup($this-&gt;Controller);
		ClassRegistry::addObject(&#039;view&#039;, new View($this-&gt;Controller));
	}

	function testEmailComponentInstance() {
		$this-&gt;assertTrue(is_a($this-&gt;Controller-&gt;Email, &#039;EmailComponent&#039;));
	}


	function tearDown() {
		$this-&gt;Controller-&gt;Component-&gt;shutdown($this-&gt;Controller);
		$this-&gt;Controller-&gt;afterFilter();
	}
}
?&gt;</description>
		<content:encoded><![CDATA[<p>It didn&#8217;t seem to work posting code here. Trying once again:</p>
<p>Controller =&amp; new EmailComponentTestController();<br />
		restore_error_handler();</p>
<p>		$this-&gt;Controller-&gt;constructClasses();<br />
		$this-&gt;Controller-&gt;Component-&gt;initialize($this-&gt;Controller);<br />
		$this-&gt;Controller-&gt;beforeFilter();<br />
		$this-&gt;Controller-&gt;Component-&gt;startup($this-&gt;Controller);</p>
<p>		set_error_handler(&#8217;simpleTestErrorHandler&#8217;);<br />
		$this-&gt;Controller-&gt;Email-&gt;startup($this-&gt;Controller);<br />
		ClassRegistry::addObject(&#8216;view&#8217;, new View($this-&gt;Controller));<br />
	}</p>
<p>	function testEmailComponentInstance() {<br />
		$this-&gt;assertTrue(is_a($this-&gt;Controller-&gt;Email, &#8216;EmailComponent&#8217;));<br />
	}</p>
<p>	function tearDown() {<br />
		$this-&gt;Controller-&gt;Component-&gt;shutdown($this-&gt;Controller);<br />
		$this-&gt;Controller-&gt;afterFilter();<br />
	}<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Motin</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/comment-page-1/#comment-11718</link>
		<dc:creator>Motin</dc:creator>
		<pubDate>Tue, 31 Mar 2009 18:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/#comment-11718</guid>
		<description>Thanks for your code. It didn&#039;t work however with the 1.2 Stable version, so here is a version that conforms more with the 1.2 code:

Controller =&amp; new EmailComponentTestController();
		restore_error_handler();
		
		$this-&gt;Controller-&gt;constructClasses();
		$this-&gt;Controller-&gt;Component-&gt;initialize($this-&gt;Controller);
		$this-&gt;Controller-&gt;beforeFilter();
		$this-&gt;Controller-&gt;Component-&gt;startup($this-&gt;Controller);
		
		set_error_handler(&#039;simpleTestErrorHandler&#039;);
		$this-&gt;Controller-&gt;Email-&gt;startup($this-&gt;Controller);
		ClassRegistry::addObject(&#039;view&#039;, new View($this-&gt;Controller));
	}

	function testEmailComponentInstance() {
		$this-&gt;assertTrue(is_a($this-&gt;Controller-&gt;Email, &#039;EmailComponent&#039;));
	}


	function tearDown() {
		$this-&gt;Controller-&gt;Component-&gt;shutdown($this-&gt;Controller);
		$this-&gt;Controller-&gt;afterFilter();
	}
}
?&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for your code. It didn&#8217;t work however with the 1.2 Stable version, so here is a version that conforms more with the 1.2 code:</p>
<p>Controller =&amp; new EmailComponentTestController();<br />
		restore_error_handler();</p>
<p>		$this-&gt;Controller-&gt;constructClasses();<br />
		$this-&gt;Controller-&gt;Component-&gt;initialize($this-&gt;Controller);<br />
		$this-&gt;Controller-&gt;beforeFilter();<br />
		$this-&gt;Controller-&gt;Component-&gt;startup($this-&gt;Controller);</p>
<p>		set_error_handler(&#8217;simpleTestErrorHandler&#8217;);<br />
		$this-&gt;Controller-&gt;Email-&gt;startup($this-&gt;Controller);<br />
		ClassRegistry::addObject(&#8216;view&#8217;, new View($this-&gt;Controller));<br />
	}</p>
<p>	function testEmailComponentInstance() {<br />
		$this-&gt;assertTrue(is_a($this-&gt;Controller-&gt;Email, &#8216;EmailComponent&#8217;));<br />
	}</p>
<p>	function tearDown() {<br />
		$this-&gt;Controller-&gt;Component-&gt;shutdown($this-&gt;Controller);<br />
		$this-&gt;Controller-&gt;afterFilter();<br />
	}<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Hartjes</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/comment-page-1/#comment-6773</link>
		<dc:creator>Chris Hartjes</dc:creator>
		<pubDate>Fri, 13 Jul 2007 19:41:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/#comment-6773</guid>
		<description>@E - thanks for pointing that</description>
		<content:encoded><![CDATA[<p>@E &#8211; thanks for pointing that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: E</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/comment-page-1/#comment-6771</link>
		<dc:creator>E</dc:creator>
		<pubDate>Fri, 13 Jul 2007 19:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/#comment-6771</guid>
		<description>Archives link at top is broken
http://www.littlehart.net/atthekeyboard</description>
		<content:encoded><![CDATA[<p>Archives link at top is broken<br />
<a href="http://www.littlehart.net/atthekeyboard" rel="nofollow">http://www.littlehart.net/atthekeyboard</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: developercast.com &#187; Chris Hartjes&#8217; Blog: Testing Components In CakePHP</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/comment-page-1/#comment-6599</link>
		<dc:creator>developercast.com &#187; Chris Hartjes&#8217; Blog: Testing Components In CakePHP</dc:creator>
		<pubDate>Thu, 05 Jul 2007 13:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/#comment-6599</guid>
		<description>[...] Hartjes has posted a quick example of a useful method for CakePHP developers - how to test components.   Using the test suite is [...]</description>
		<content:encoded><![CDATA[<p>[...] Hartjes has posted a quick example of a useful method for CakePHP developers &#8211; how to test components.   Using the test suite is [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Hartjes</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/comment-page-1/#comment-6583</link>
		<dc:creator>Chris Hartjes</dc:creator>
		<pubDate>Wed, 27 Jun 2007 12:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/#comment-6583</guid>
		<description>@Daniel:  Yeah, there was some weirdness going on with my local mail server on my development box, so I have to figure this stuff out today...it fails at unpredictable parts of the communication with an SMTP server so reproducing it is hard.</description>
		<content:encoded><![CDATA[<p>@Daniel:  Yeah, there was some weirdness going on with my local mail server on my development box, so I have to figure this stuff out today&#8230;it fails at unpredictable parts of the communication with an SMTP server so reproducing it is hard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Hofstetter</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/comment-page-1/#comment-6581</link>
		<dc:creator>Daniel Hofstetter</dc:creator>
		<pubDate>Wed, 27 Jun 2007 06:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/#comment-6581</guid>
		<description>Your test fails here:

1)  at [/home/dho/projects/cake_1.2.x.x/cake/tests/cases/libs/controller/components/email.test.php line 58]
        in testSmtpSend
        in EmailTest
        in /home/dho/projects/cake_1.2.x.x/cake/tests/cases/libs/controller/components/email.test.php
FAILURES!!!
Test cases run: 23/23, Passes: 2135, Failures: 1, Exceptions: 0
</description>
		<content:encoded><![CDATA[<p>Your test fails here:</p>
<p>1)  at [/home/dho/projects/cake_1.2.x.x/cake/tests/cases/libs/controller/components/email.test.php line 58]<br />
        in testSmtpSend<br />
        in EmailTest<br />
        in /home/dho/projects/cake_1.2.x.x/cake/tests/cases/libs/controller/components/email.test.php<br />
FAILURES!!!<br />
Test cases run: 23/23, Passes: 2135, Failures: 1, Exceptions: 0</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->