<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 15 May 2008 22:44:04 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Tillate.com Blog: Unit test practice at tilllate.com]]></title>
      <guid>http://www.phpdeveloper.org/news/10164</guid>
      <link>http://www.phpdeveloper.org/news/10164</link>
      <description><![CDATA[<p>
<i>Silvan Muhlemann</i> has <a href="http://techblog.tilllate.com/2008/05/11/unit-test-practice-at-tilllatecom/">posted about</a> the unit testing that tillate.com does for their releases - the whole process from start to finish.
</p>
<blockquote>
For now over three years we are working with unit tests. I'd like to share some of those experiences. As we have two frameworks in place for our website, I can compare two different strategies for unit tests.
</blockquote>
<p>
He <a href="http://techblog.tilllate.com/2008/05/11/unit-test-practice-at-tilllatecom/">talks about</a> their choice of SimpleTest, their test monitoring, CruiseControl and their "if it doesn't pass, you can't release it" mentality to keep their site as bug free as possible.
</p>]]></description>
      <pubDate>Mon, 12 May 2008 15:46:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: Unit Testing in CakePHP Part 1 - Introduction to Unit Testing]]></title>
      <guid>http://www.phpdeveloper.org/news/10131</guid>
      <link>http://www.phpdeveloper.org/news/10131</link>
      <description><![CDATA[<p>
On the Debuggable blog, <i>Tim Koschutki</i> has posted the <a href="http://www.debuggable.com/posts/unit-testing-in-cakephp-part-1---introduction-to-unit-testing:48102610-c5d0-4398-a010-76974834cda3">first part</a> of a series looking at unit testing the CakePHP framework. This first article introduces you to the idea of unit testing to help lay the foundation for what's to come.
</p>
<blockquote>
So you want to read up on Unit Testing in CakePHP? That is great, testing can be such a help in finding bugs. [...] Surprisingly, many people do not know yet what unit testing is. In this first part of a whole series you can get a good grasp of what it is and is not.
</blockquote>
<p>
He goes over the basic concepts behind the testing - setting up test cases, comparing results, automating them and how they related to code coverage. He gets into more detail with a list of the assert functions (like assertNotEqual or assertClone) and some examples using the simpletest unit testing software. He wraps it up by listing some of the benefits of unit testing, the limitations of it, TDD and what Mock objects are.
</p>]]></description>
      <pubDate>Wed, 07 May 2008 10:23:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP in Action Blog: Tips for web testing]]></title>
      <guid>http://www.phpdeveloper.org/news/9619</guid>
      <link>http://www.phpdeveloper.org/news/9619</link>
      <description><![CDATA[<p>
On the PHP in Action Blog, there's a <a href="http://www.reiersol.com/blog/index.php?op=ViewArticle&articleId=11&blogId=1">this post</a> that shares some tips for testing your web applications with some simple tests.
</p>
<blockquote>
I just started listing the techniques I've learned when writing tests to exercise the web interface of a PHP application. This is from my experience and my personal preferences; it's not the final word or necessarily right for everyone.
</blockquote>
<p>He suggests:</p>
<ul>
<li>Use SimpleTest's Web tester if you can
<li>Test the web output using regular expressions
<li>Use element IDs or names to test links, forms and fields
<li>Log HTTP requests in the application
</ul>]]></description>
      <pubDate>Wed, 13 Feb 2008 08:09:46 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stubbles Blog: Stubbles 0.5.0 released]]></title>
      <guid>http://www.phpdeveloper.org/news/9548</guid>
      <link>http://www.phpdeveloper.org/news/9548</link>
      <description><![CDATA[<p>
<i>Frank Kleine</i> has <a href="http://www.stubbles.org/archives/41-Stubbles-0.5.0-released.html">announced on the Stubbles blog</a> that the latest version of the framework, Stubbles 0.5.0 has been released.
</p>
<blockquote>
A last day of a month - time to release a new Stubbles version. The release does not feature that much new features, we focused mainly on infrastructure and code quality improvements. The most important change of course is the change of the package separator.
</blockquote>
<p>
Instead of the dots they've gone with the more standard double-colon that PHP already uses. There were also code quality improvements and a move away from SimpleTest out to the popular <a href="http://www.phpunit.de">PHPUnit</a> unit testing package.
</p>
<p>
You can download this new package from the <a href="http://www.stubbles.net/">Stubbles project site</a>.
</p>]]></description>
      <pubDate>Fri, 01 Feb 2008 13:37:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP in Action Blog: Testing Smarty templates]]></title>
      <guid>http://www.phpdeveloper.org/news/9513</guid>
      <link>http://www.phpdeveloper.org/news/9513</link>
      <description><![CDATA[<p>
On the PHP in Action blog today, there's a <a href="http://www.reiersol.com/blog/index.php?op=ViewArticle&articleId=29&blogId=1">quick new post</a> that talks about not only using the <a href="http://smarty.php.net">Smarty templating system</a> but also a method for testing it to check for any kind of possible failure.
</p>
<blockquote>
As I mentioned in my blog post on <a href="http://www.reiersol.com/blog/index.php?op=ViewArticle&articleId=25&blogId=1">Paparrazzi testing</a>, Uncle Bob (Robert C. Martin) has discussed how to test web templates or server pages. Since I'm currently working with Smarty templates, I wanted a simple way to run tests on them without needing to deal with a web server and the page navigation in a full web application.
</blockquote>
<p>
Thankfully, he's found a nice, simple method for running tests against the Smarty engine (and includes that in <a href="http://www.reiersol.com/blog/index.php?op=ViewArticle&articleId=29&blogId=1">the post</a> - an interface to Smarty and the example test case to run against it).
</p>]]></description>
      <pubDate>Tue, 29 Jan 2008 08:47:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: pTest: PHP Unit Tester in 9 Lines Of Code]]></title>
      <guid>http://www.phpdeveloper.org/news/8438</guid>
      <link>http://www.phpdeveloper.org/news/8438</link>
      <description><![CDATA[<p>
On the SitePoint PHP blog, there's <a href="http://www.sitepoint.com/blogs/2007/08/13/ptest-php-unit-tester-in-9-lines-of-code/">a new post</a> from <i>Paul Annesley</i> about his latest creation - a nine line unit tester for PHP, pTest.
</p>
<blockquote>
I was recently working on a command line PHP tool, and didn't have easy access to our normal PHP unit testing framework built around <a href="http://simpletest.org/">SimpleTest</a>. [...] I didn't need support for <a href="http://en.wikipedia.org/wiki/Mock_object">mock objects</a> or complicated assertions - just a bare basic assertTrue() would do the trick.
</blockquote>
<p>
He <a href="http://www.sitepoint.com/blogs/2007/08/13/ptest-php-unit-tester-in-9-lines-of-code/">includes the code</a> (of course) and an example of it in action, three tests with their assertions. It's a simple little tool made of a simple purpose, a starting place for developers just learning unit testing to learn from.
</p>]]></description>
      <pubDate>Mon, 13 Aug 2007 12:05:00 -0500</pubDate>
    </item>
  </channel>
</rss>
