<?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, 23 May 2013 03:01:29 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[NetTuts.com: Testing your PHP Codebase with EnhancePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17431</guid>
      <link>http://www.phpdeveloper.org/news/17431</link>
      <description><![CDATA[<p>
On NetTuts.com today a new tutorial has been posted to help you test your applications and make it a simpler process <a href="http://net.tutsplus.com/tutorials/php/testing-your-php-codebase-with-enhancephp/">using the EnhancePHP framework</a>. <a href="http://www.enhance-php.com/">EnhancePHP</a> is a lightweight Open Source PHP <a href="http://www.enhance-php.com/Content/About-Unit-Testing/">unit testing</a> framework with support for <a href="http://www.enhance-php.com/Content/Mocks-And-Stubs/">mocks and stubs</a>.
</p>
<blockquote>
You know it; I know it. We should be testing our code more than we do. Part of the reason we don't, I think, is that we don't know exactly how. Well, I'm getting rid of that excuse today: I'm teaching you to test your PHP with the <a href="http://www.enhance-php.com/">EnhancePHP</a> framework.
</blockquote>
<p>
He shows you how to download it, get it installed and creates a simple structure to do some TDD (Test-Driven Development) with it. His tests check three things - valid email addresses, username restrictions and phone number formatting. He also includes a look at creating mocks/stubs for a "scoreboard" example.
</p>
<p>
You can find out more about the EnhancePHP framework on <a href="https://github.com/Enhance-PHP">its github page</a>.
</p>]]></description>
      <pubDate>Mon, 23 Jan 2012 09:25:45 -0600</pubDate>
    </item>
  </channel>
</rss>
