<?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>Fri, 24 May 2013 13:59:36 -0500</pubDate>
    <ttl>30</ttl>
    <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>
