<?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: TDD with Zend Framework &#8211; testing controllers</title>
	<atom:link href="http://avnetlabs.com/zend-framework/tdd-with-zend-framework-testing-controllers/feed" rel="self" type="application/rss+xml" />
	<link>http://avnetlabs.com/zend-framework/tdd-with-zend-framework-testing-controllers</link>
	<description>Accessible web development</description>
	<lastBuildDate>Wed, 31 Mar 2010 18:57:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: uli</title>
		<link>http://avnetlabs.com/zend-framework/tdd-with-zend-framework-testing-controllers/comment-page-1#comment-838</link>
		<dc:creator>uli</dc:creator>
		<pubDate>Wed, 31 Mar 2010 18:57:58 +0000</pubDate>
		<guid isPermaLink="false">http://avnetlabs.com/?p=241#comment-838</guid>
		<description>In my opionion you should add a test for the submit button, too. The label text doesn&#039;t matter, but a check for the label existence (mapping the label&#039;s &quot;for&quot; attribute to the input&#039;s &quot;name&quot; attribute) would make sense in that case, wouldn&#039;t it?</description>
		<content:encoded><![CDATA[<p>In my opionion you should add a test for the submit button, too. The label text doesn&#8217;t matter, but a check for the label existence (mapping the label&#8217;s &#8220;for&#8221; attribute to the input&#8217;s &#8220;name&#8221; attribute) would make sense in that case, wouldn&#8217;t it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blog.nielslange.de &#187; Test Driven Development (TTD) with the Zend Framework</title>
		<link>http://avnetlabs.com/zend-framework/tdd-with-zend-framework-testing-controllers/comment-page-1#comment-836</link>
		<dc:creator>blog.nielslange.de &#187; Test Driven Development (TTD) with the Zend Framework</dc:creator>
		<pubDate>Tue, 30 Mar 2010 21:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://avnetlabs.com/?p=241#comment-836</guid>
		<description>[...] TDD with Zend Framework &#8211; Testing Controllers [...]</description>
		<content:encoded><![CDATA[<p>[...] TDD with Zend Framework &#8211; Testing Controllers [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 西波</title>
		<link>http://avnetlabs.com/zend-framework/tdd-with-zend-framework-testing-controllers/comment-page-1#comment-804</link>
		<dc:creator>西波</dc:creator>
		<pubDate>Sat, 23 Jan 2010 23:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://avnetlabs.com/?p=241#comment-804</guid>
		<description>Edit:
http://weierophinney.net/matthew/archives/230-Quick-Start-to-Zend_Application_Bootstrap.html</description>
		<content:encoded><![CDATA[<p>Edit:<br />
<a href="http://weierophinney.net/matthew/archives/230-Quick-Start-to-Zend_Application_Bootstrap.html" rel="nofollow">http://weierophinney.net/matthew/archives/230-Quick-Start-to-Zend_Application_Bootstrap.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 西波</title>
		<link>http://avnetlabs.com/zend-framework/tdd-with-zend-framework-testing-controllers/comment-page-1#comment-803</link>
		<dc:creator>西波</dc:creator>
		<pubDate>Sat, 23 Jan 2010 23:36:32 +0000</pubDate>
		<guid isPermaLink="false">http://avnetlabs.com/?p=241#comment-803</guid>
		<description>Looking forward to the next awesome  work!

@紅酒課程
I foud an useful article at ：
http://weierophinney.net/matthew/archives/215-Rendering-Zend_Form-decorators-individually.html
@Redner
Try this:
http://www.survivethedeepend.com/zendframeworkbook/en/1.0/implementing.the.domain.model.entries.and.authors#zfbook.implementing.the.domain.model.entries.and.authors.implementation.adding.unit.tests.for.execution

Yes,that book  got me here !</description>
		<content:encoded><![CDATA[<p>Looking forward to the next awesome  work!</p>
<p>@紅酒課程<br />
I foud an useful article at ：<br />
<a href="http://weierophinney.net/matthew/archives/215-Rendering-Zend_Form-decorators-individually.html" rel="nofollow">http://weierophinney.net/matthew/archives/215-Rendering-Zend_Form-decorators-individually.html</a><br />
@Redner<br />
Try this:<br />
<a href="http://www.survivethedeepend.com/zendframeworkbook/en/1.0/implementing.the.domain.model.entries.and.authors#zfbook.implementing.the.domain.model.entries.and.authors.implementation.adding.unit.tests.for.execution" rel="nofollow">http://www.survivethedeepend.com/zendframeworkbook/en/1.0/implementing.the.domain.model.entries.and.authors#zfbook.implementing.the.domain.model.entries.and.authors.implementation.adding.unit.tests.for.execution</a></p>
<p>Yes,that book  got me here !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Redner</title>
		<link>http://avnetlabs.com/zend-framework/tdd-with-zend-framework-testing-controllers/comment-page-1#comment-775</link>
		<dc:creator>Redner</dc:creator>
		<pubDate>Fri, 04 Dec 2009 18:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://avnetlabs.com/?p=241#comment-775</guid>
		<description>Hi, has anyone ever implemented a Model test using Zend_Test_PHPUnit_DataBaseTestCase class? 
I&#039;m having some problem with it, so if anyone can help.
Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi, has anyone ever implemented a Model test using Zend_Test_PHPUnit_DataBaseTestCase class?<br />
I&#8217;m having some problem with it, so if anyone can help.<br />
Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 紅酒課程</title>
		<link>http://avnetlabs.com/zend-framework/tdd-with-zend-framework-testing-controllers/comment-page-1#comment-754</link>
		<dc:creator>紅酒課程</dc:creator>
		<pubDate>Sat, 21 Nov 2009 07:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://avnetlabs.com/?p=241#comment-754</guid>
		<description>Anyone know of a good pre built base of ZF 1.9 app with pre configured bootstrapper and tests I can download.</description>
		<content:encoded><![CDATA[<p>Anyone know of a good pre built base of ZF 1.9 app with pre configured bootstrapper and tests I can download.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avnet Labs Blog: TDD with Zend Framework - testing controllers &#124; Webs Developer</title>
		<link>http://avnetlabs.com/zend-framework/tdd-with-zend-framework-testing-controllers/comment-page-1#comment-751</link>
		<dc:creator>Avnet Labs Blog: TDD with Zend Framework - testing controllers &#124; Webs Developer</dc:creator>
		<pubDate>Fri, 20 Nov 2009 15:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://avnetlabs.com/?p=241#comment-751</guid>
		<description>[...] the Avnet Labs blog today Ekerete has posted a look at test-driven design with Zend Framework applications (controllers) and PHPUnit. This is the [...]</description>
		<content:encoded><![CDATA[<p>[...] the Avnet Labs blog today Ekerete has posted a look at test-driven design with Zend Framework applications (controllers) and PHPUnit. This is the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luke</title>
		<link>http://avnetlabs.com/zend-framework/tdd-with-zend-framework-testing-controllers/comment-page-1#comment-749</link>
		<dc:creator>luke</dc:creator>
		<pubDate>Thu, 19 Nov 2009 16:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://avnetlabs.com/?p=241#comment-749</guid>
		<description>This seems to be the common approach for testing controllers, but I can&#039;t help notice it combines testing controllers and views together. It&#039;s probably fine for most cases.

I wrote up a proposal for a test viewrenderer that does nothing but disables the view render: http://framework.zend.com/wiki/display/ZFPROP/Zend_Test_ViewRenderer

In that case, you could simply invoke the controller methods and assert against the view contents, rather than the representation ...

$this-&gt;_controller-&gt;indexAction(); 
$this-&gt;assertNotNull($this-&gt;_controller-&gt;view-&gt;projects); 
$this-&gt;assertEquals(26,count($this-&gt;_controller-&gt;view-&gt;projects));</description>
		<content:encoded><![CDATA[<p>This seems to be the common approach for testing controllers, but I can&#8217;t help notice it combines testing controllers and views together. It&#8217;s probably fine for most cases.</p>
<p>I wrote up a proposal for a test viewrenderer that does nothing but disables the view render: <a href="http://framework.zend.com/wiki/display/ZFPROP/Zend_Test_ViewRenderer" rel="nofollow">http://framework.zend.com/wiki/display/ZFPROP/Zend_Test_ViewRenderer</a></p>
<p>In that case, you could simply invoke the controller methods and assert against the view contents, rather than the representation &#8230;</p>
<p>$this-&gt;_controller-&gt;indexAction();<br />
$this-&gt;assertNotNull($this-&gt;_controller-&gt;view-&gt;projects);<br />
$this-&gt;assertEquals(26,count($this-&gt;_controller-&gt;view-&gt;projects));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avnet Labs Blog: TDD with Zend Framework &#8216;&#8221; testing controllers &#124; Webs Developer</title>
		<link>http://avnetlabs.com/zend-framework/tdd-with-zend-framework-testing-controllers/comment-page-1#comment-748</link>
		<dc:creator>Avnet Labs Blog: TDD with Zend Framework &#8216;&#8221; testing controllers &#124; Webs Developer</dc:creator>
		<pubDate>Thu, 19 Nov 2009 16:01:01 +0000</pubDate>
		<guid isPermaLink="false">http://avnetlabs.com/?p=241#comment-748</guid>
		<description>[...] the Avnet Labs blog today Ekerete has posted a look at test-driven design with Zend Framework applications (controllers) and PHPUnit. This is the [...]</description>
		<content:encoded><![CDATA[<p>[...] the Avnet Labs blog today Ekerete has posted a look at test-driven design with Zend Framework applications (controllers) and PHPUnit. This is the [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.284 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-31 20:02:13 -->
