<?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, 28 Aug 2008 20:29:54 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Testing email routines in web applications]]></title>
      <guid>http://www.phpdeveloper.org/news/10625</guid>
      <link>http://www.phpdeveloper.org/news/10625</link>
      <description><![CDATA[<p>
On the Developer Tutorials blog, there's a <a href="http://www.developertutorials.com/blog/web/testing-email-routines-in-web-applications-348/">recent example</a> of how to validate a common task of many signup forms - if the email sent is actually received.
</p>
<blockquote>
For any web developer that's ever had to build a signup routine, email is the necessary evil that takes pride of place among hated activities. Sure, a simple call to the language's mail library will send a message through, but the moment the boss wants a HTML email, or users need attachments, everything starts to get tricky.
</blockquote>
<p>
They try to solve the <a href="http://www.php.net">mail</a> return issue (it tells if the message has gone to the queue, not been delivered) with a little testing and <a href="http://www.lastcraft.com/fakemail.php">Fakemail</a>. The software looks for emails based on the configuration given and pulls them out to a local directory. Your script can then look here and check the validity of the message before its sent. 
</p>
<p>
This even allows for integration with things like <a href="http://phing.info/">Phing</a>, <a href="http://simpletest.sourceforge.net/">SimpleTest</a> and <a href="http://selenium.openqa.org/">Selenium</a>.
</p>]]></description>
      <pubDate>Thu, 17 Jul 2008 08:49:16 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: SimpleTest: Unit Testing for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10607</guid>
      <link>http://www.phpdeveloper.org/news/10607</link>
      <description><![CDATA[<p>
<i>Akash Mehta</i> has <a href="http://www.developertutorials.com/blog/php/simpletest-unit-testing-for-php-332/">posted a look</a> at unit testing for PHP applications with the SimpleTest tool in a new post to the Developer Tutorials blog.
</p>
<blockquote>
We recently looked at <a href="http://www.developertutorials.com/blog/web/selenium-ide-front-end-web-application-testing-322/">front-end testing of web applications with Selenium</a>. Today, we'll take another approach to testing your PHP applications: backend unit testing for your actual PHP code. As part of our posts on test driven development, here's a quick intro to using SimpleTest to test your PHP applications.
</blockquote>
<p>
He introduces the <a href="http://simpletest.org/">SimpleTest</a> software and shows what a sample test might look like for a simple math question (testing to see if the result of the addition is correct). He also points out <a href="http://simpletest.org/en/first_test_tutorial.html">a good tutorial</a> on the SimpleTest website to help you get started.
</p>]]></description>
      <pubDate>Tue, 15 Jul 2008 10:24:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: How To Execute Only Specific Test Methods in CakePHP Unit Tests]]></title>
      <guid>http://www.phpdeveloper.org/news/10444</guid>
      <link>http://www.phpdeveloper.org/news/10444</link>
      <description><![CDATA[<p>
On the Debuggable blog today, <i>Tim Koschutki</i> <a href="http://www.debuggable.com/posts/how-to-execute-only-specific-test-methods-in-cakephp-unit-tests:4858fa7b-7194-4652-9c7f-47784834cda3">shows how</a> you can run just the tests you want on your CakePHP application without having to worry about sorting their results out manually.
</p>
<blockquote>
Most of us familiar with unit testing with CakePHP and SimpleTest know that SimpleTest always executes all methods starting with the string "test". This can be problematic sometimes. At this point you have two options: create a new testcase, put an "x" before every other test name or use the following tip.
</blockquote>
<p>
<a href="http://www.debuggable.com/posts/how-to-execute-only-specific-test-methods-in-cakephp-unit-tests:4858fa7b-7194-4652-9c7f-47784834cda3">His tip</a> puts another layer on top of the usual testing and uses the getTests method to define with of the tests need to be run. If it's defined, SimpleTest will only execute those.
</p>]]></description>
      <pubDate>Thu, 19 Jun 2008 12:52:45 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP in Action Blog: Testing a Zend Framework action controller with View Helpers]]></title>
      <guid>http://www.phpdeveloper.org/news/10384</guid>
      <link>http://www.phpdeveloper.org/news/10384</link>
      <description><![CDATA[<p>
On the PHP in Action blog, there's a <a href="http://www.reiersol.com/blog/1_php_in_action/archive/70_testing_a_zend_framework_action_controller_with_view_helpers.html">new post</a> about a method for testing a controller as a part of a Zend Framework application with its own view helpers.
</p>
<blockquote>
I came across a Zend Framework (ZF) example I wanted to refactor. You really have to have unit test coverage to refactor effectively, and since there were no tests, I started trying to find out how to test it. There didn't seem to be a wealth of information available on the web, so I've tried to figure it out by myself.
</blockquote>
<p>
He walks through the testing process he followed - making some new default objects (for SimpleTest) and, using the flash messenger view helper, makes some mock classes to simulate sending the flash messages in an application.
</p>]]></description>
      <pubDate>Wed, 11 Jun 2008 07:56:11 -0500</pubDate>
    </item>
    <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[Stubbles Blog: vfsStream 0.1.0 Released]]></title>
      <guid>http://www.phpdeveloper.org/news/9320</guid>
      <link>http://www.phpdeveloper.org/news/9320</link>
      <description><![CDATA[<p>
On the Stubbles blog, <i>Frank Kleine</i> has <a href="http://www.stubbles.org/archives/36-vfsStream-0.1.0-released.html">posted about</a> the release of a new wrapper class he's developed to go around a virtual file system.
</p> 
<blockquote>
Some minutes ago I released the first version of <a href="http://www.stubbles.org/exit.php?url_id=245&entry_id=36">vfsStream</a>. vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like <a href="http://phpunit.de">PHPUnit</a> or <a href="http://simpletest.org/">SimpleTest</a>.
</blockquote>
<p>
The idea for the class came about when he thought about the use of real databases vs test databases and applied it to file systems. You can grab the latest version from their <a href="http://stubbles.net/wiki/vfsStream">trac website</a> as well as get more information about known issues and a brief example of its use.
</p>]]></description>
      <pubDate>Thu, 27 Dec 2007 11:11:00 -0600</pubDate>
    </item>
  </channel>
</rss>
