<?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, 04 Dec 2008 13:13:50 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Symfony Project: Book preview: read the Unit Tests chapter]]></title>
      <guid>http://www.phpdeveloper.org/news/7133</guid>
      <link>http://www.phpdeveloper.org/news/7133</link>
      <description><![CDATA[<p>
With unit testing becoming more and more prevalent in development of online applications (especially PHP), it's good to see some of the frameworks giving their users as much information as possible. The symfony project has <a href="http://www.symfony-project.com/weblog/2007/01/17/book-preview-read-the-unit-tests-chapter.html">done just that</a> as a part of a larger book on the framework.
</p>
<blockquote>
You're probably curious to see if what we wrote in this book is really helpful and practical. So we decided to offer you a sample of the book, in PDF format, and that's precisely Chapter 15 about units and functional tests.
</blockquote>
<p>
To check out this sample chapter from thei upcoming book (the chapter on unit testing), <a href="http://www.symfony-project.com/uploads/assets/The_Definitive_Guide_to_Symfony_Chapter_15.pdf">download it here</a> or just grab <a href="http://www.amazon.com/dp/1590597869>the book from Amazon</a> to add to your collection.
</p>]]></description>
      <pubDate>Fri, 19 Jan 2007 11:44:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weir O'Phinney's Blog: Getting XDebug working with PHPUnit for code coverage reports]]></title>
      <guid>http://www.phpdeveloper.org/news/6990</guid>
      <link>http://www.phpdeveloper.org/news/6990</link>
      <description><![CDATA[<p>
After trying to get code coverage reports and unit testing with PHPUnit and XDebug to work, <i>Matthew Weir O'Phinney</i> succeeded and got the reports running. Fortunately, he's <A href="http://weierophinney.net/matthew/archives/130-Getting-XDebug-working-with-PHPUnit-for-code-coverage-reports.html">shared how he's done it</a> and an example of how to run the report.
</p>
<blockquote>
I've been playing with PHPUnit a lot of late, particularly with framework development. One thing that's always hard to determine is how well your code is exercised -- basically, how much of the code is tested in the unit tests?
</blockquote>
<p>
He <a href="http://weierophinney.net/matthew/archives/130-Getting-XDebug-working-with-PHPUnit-for-code-coverage-reports.html">gives an "executive summary"</a> of how to get XDebug working and playing nice with PHPUnit as well as something a bit more detailed, following his experience with getting things up and running.
</p>]]></description>
      <pubDate>Thu, 28 Dec 2006 15:02:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: AJAX-Based Test Runner for PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/6759</guid>
      <link>http://www.phpdeveloper.org/news/6759</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> has posted an official <a href="http://sebastian-bergmann.de/archives/639-AJAX-Based-Test-Runner-for-PHPUnit.html">call for help</a> for a PHPUnit-related project that seems to be a more and more requested feature for the popular unit testing package - an Ajax-based test runner.
</p>
<blockquote>
It would be great if the frontend for the browser-based test runner would make use of <a href="http://en.wikipedia.org/wiki/AJAX">AJAX</a>. Since I am clueless when it comes to both web design in general and AJAX in particular, I would appreciate if someone else could help me with implementing this test runner.
</blockquote>
<p>
He's <a href="http://sebastian-bergmann.de/archives/639-AJAX-Based-Test-Runner-for-PHPUnit.html">looking for</a> the XHTML, CSS, and Javascript to put it all together as well as the Javascript that makes the magic happen. If you're interested in helping out, you can either contact him on <a href="http://www.phpunit.de/wiki/MailinglistsAndIrc">the mailing list</a> or in <a href="http://www.phpunit.de/wiki/MailinglistsAndIrc">#phpunit</a> on the Freenode IRC network.
</p>]]></description>
      <pubDate>Wed, 22 Nov 2006 18:02:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: PHPUnit 3.0 (Release)]]></title>
      <guid>http://www.phpdeveloper.org/news/6736</guid>
      <link>http://www.phpdeveloper.org/news/6736</link>
      <description><![CDATA[<p>
PHPUnit fans can finally rejoice that the latest version of their much loved PHP unit testing utility - <a href="http://www.phpunit.de/">PHPUnit3</a> - has finally been released as a stable download.
</p>
<blockquote>
<a href="http://sebastian-bergmann.de/">Sebastian Bergmann</a> and his contributors are proud to announce the immediate availability of <a href="http://www.phpunit.de/">PHPUnit 3</a>. This release is a major improvement to the popular open source testing solution for <a href="http://www.php.net/">PHP</a> applications. It includes new features and bug fixes. Further details about this release can be found in the <a href="http://www.phpunit.de/wiki/ChangeLog">ChangeLog</a>.
</blockquote>
<p>
In his <a href="http://sebastian-bergmann.de/archives/638-PHPUnit-3.0.html">newest blog post</a>, <i>Sebastian</i> lists some of the main new features this release offers - mock objects, selenium integration, and code-coverage support. There's even a brief installation howto and some on how to upgrade from the previous PHPUnit 2.3 to the latest.
</p>]]></description>
      <pubDate>Mon, 20 Nov 2006 09:24:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Felix Geisendorfer's Blog: Release early, Release often, CakeTester]]></title>
      <guid>http://www.phpdeveloper.org/news/6729</guid>
      <link>http://www.phpdeveloper.org/news/6729</link>
      <description><![CDATA[<p>
Trying to adhere to the philosophy of "release early and release often", <i>Felix Geisendorfer</i> has <a href="http://www.thinkingphp.org/2006/11/16/release-early-release-often-caketaster/">posted a new item</a> with the latest version of his testing application for the CakePHP framework - <a href="http://www.thinkingphp.org/downloads/cake_taster_0.1.zip">CakeTester</a>.
</p>
<blockquote>
The truth is, the poorest programmer of all is the ones that doesn't release. Because what good am I doing to the world when tinkering for for month on things people are in bad need for today, just to make myself look like all code I ever write is perfect the first time. None at all.
</blockquote>
<p>
He <a href="http://www.thinkingphp.org/downloads/cake_taster_0.1.zip">links to the download</a> and provides some basic install/usage instructions including a code sample (and a <a href="http://img505.imageshack.us/img505/6673/caketasterzq0.png">screenshot</a>) to get you started.
</p>]]></description>
      <pubDate>Fri, 17 Nov 2006 10:53:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Zend_Service_Audioscrobbler Update]]></title>
      <guid>http://www.phpdeveloper.org/news/6688</guid>
      <link>http://www.phpdeveloper.org/news/6688</link>
      <description><![CDATA[<p>
In his <a href="http://www.littlehart.net/atthekeyboard/2006/11/10/zend_service_audioscrobbler-update-2/">latest blog post</a>, <i>Chris Hartjes</i> gives us an update on one of the packages (components?) for the Zend Framework - the <a href="http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_Audioscrobbler+Proposal+-+Chris+Hartjes,+Derek+Martin">Zend_Service_Audioscrobbler</a>.
</p>
<p>
He talks about, though his time is a bit more stretched than usual, he's managed to get some real work done on the package. He gives some code examples to show off what this new development is (complete with unit tests - go agile testing!).
</p>
<blockquote>
That <a href="http://www.littlehart.net/atthekeyboard/2006/11/10/zend_service_audioscrobbler-update-2/">bit of code</a> is what does all the heavy lifting for me. It uses the Zend_Service_Rest component to talk to Audioscrobbler's web services, and returns the results as a SimpleXML object. Nice and simple. A perfect example of what Zend Framework is trying to accomplish.
</blockquote>
<p>
The second code example is the tests that he's generated to check the package for errors in grabbing the 'Top Artists' and 'Top Tracks' as grabbed by the package via the REST web service.
</p>]]></description>
      <pubDate>Mon, 13 Nov 2006 07:49:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: PHPUnit 3.0 Beta 3]]></title>
      <guid>http://www.phpdeveloper.org/news/6660</guid>
      <link>http://www.phpdeveloper.org/news/6660</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> <a href="http://sebastian-bergmann.de/archives/637-PHPUnit-3.0-Beta-3.html">notes today</a> that he has release this third beta version of the upcoming PHPUnit 3 release, a popular unit testing framework for PHP.
</p>
<blockquote>
A list of <a href="http://www.phpunit.de/wiki/Features">features</a> is available as well as a list of <a href="http://www.phpunit.de/wiki/ChangeLog">changes</a>. You can install PHPUnit using the PEAR Installer. 
</blockquote>
<p>
PHPUnit 3.0 is the (coming soon) version of PHPUnit - both a framework that makes the writing of tests easy as well as the functionality to easily run the tests and analyse their results.
</p>]]></description>
      <pubDate>Tue, 07 Nov 2006 15:56:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Graphical Interfaces and Unit Testing]]></title>
      <guid>http://www.phpdeveloper.org/news/6630</guid>
      <link>http://www.phpdeveloper.org/news/6630</link>
      <description><![CDATA[<p>
In the final part of their series looking at unit testing in PHP, DevShed has <a href="http://www.devshed.com/c/a/PHP/Graphical-Interfaces-and-Unit-Testing/">this new tutorial</a> that looks at using graphical interfaces with the unit tests you've already generated. It's another excerpt from the <i>George Schlossnage</i> book "Advanced PHP Programming".
</p>
<blockquote>
Because PHP is a Web-oriented language, you might want an HTML-based user interface for running your unit tests. PHPUnit comes bundled with this ability, using PHPUnit_WebUI_TestRunner::run(). This is in fact a nearly identical framework to TextUI; it simply uses its own listener to handle generate HTML-beautified output.
</blockquote>
<p>
He <a href="http://www.devshed.com/c/a/PHP/Graphical-Interfaces-and-Unit-Testing/">looks at</a> test driven design, a simple "Flesch Score Calculator" class, testing a "Word" class (with PHPUnit), and creating the Bug Report of the output of it all. Finally, he builds up a simple web interface to make running the tests and getting the reports nice and easy.
</p>]]></description>
      <pubDate>Thu, 02 Nov 2006 11:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Unit Testing in Detail]]></title>
      <guid>http://www.phpdeveloper.org/news/6583</guid>
      <link>http://www.phpdeveloper.org/news/6583</link>
      <description><![CDATA[<p>
Continuing in their effort to help PHP developers keep their code bug-free, DevShed has posted <a href="http://www.devshed.com/c/a/PHP/Unit-Testing-in-Detail/">part two of the series</a> looking at unit testing your applications. Previously they had <a href="http://www.phpdeveloper.org/news/6533">looked at the basics</a> - of they work and what they're for. This time, they dig a little deeper, showing some of the additional features and conditions that <a href="http://phpunit.sourceforge.net/">PHPUnit</a> has to offer.
</p>
<blockquote>
This week, you will learn about running multiple tests simultaneously, creating more informative error messages, and more.
</blockquote>
<p>
They get back into something they mentioned briefly before - packaging tests in a separate archive to keep it out of the main body of code (the same way separating content and display functionality is good). They also talk about how to run more than one test at the same time, a handy feature that lets you make regression tests.
</p>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Unit-Testing-in-Detail/1/">also show</a> how to create more informative error messages and how to manually add more testing conditions for you to check custom bits of code that don't quite fit with the assertNull, assertEquals, and assertFalse crowd.
</p>
<p>
This article is an excerpt from the Sams Publishing book "Advanced PHP Programming" by <i>George Schlossnagle</i>.
</p>]]></description>
      <pubDate>Thu, 26 Oct 2006 09:58:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Unit Testing]]></title>
      <guid>http://www.phpdeveloper.org/news/6533</guid>
      <link>http://www.phpdeveloper.org/news/6533</link>
      <description><![CDATA[<p>
More and more talk is being given to testing applications these days. For some, that just means going through the functionality and ensuring that things seem to be working okay. That's one way to find problems in an application, but not the best way. A better way it through unit testing, a system of writing up various tests for the functions making up your application to ensure they're 100% working. Not familiar with it? That's what <a href="http://www.devshed.com/c/a/PHP/Unit-Testing/">this new tutorial</a> from DevShed is for - another excerpt from the Sams Publishing book "Advanced PHP Programming".
</p>
<blockquote>
All code is tested at some point-perhaps during its implementation, during a dedicated testing phase, or when it goes live. Any developer who has launched broken code live knows that it is easier to test and debug code during development than after it goes into production.
</blockquote>
<p>
Unit testing helps with finding these problems before they get into the hands of live users. <a href="http://www.devshed.com/c/a/PHP/Unit-Testing/">The tutorial</a> gives you a basic overview of how to work with this handy tool, specifically with the <a href="http://pear.php.net/PHPUnit">PHPUnit package</a>. They help you write a simple test, expand on this base with more elaborate tests, and how to package your tests right in with your libraries to make installation/packaging simpler.
</p>]]></description>
      <pubDate>Thu, 19 Oct 2006 10:12:00 -0500</pubDate>
    </item>
  </channel>
</rss>
