<?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:08:09 -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[Sebastian Bergmann's Blog: PHP Has No Culture of Testing]]></title>
      <guid>http://www.phpdeveloper.org/news/10161</guid>
      <link>http://www.phpdeveloper.org/news/10161</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> has <a href="http://sebastian-bergmann.de/archives/779-PHP-Has-No-Culture-of-Testing.html">pointed out</a> something obvious to anyone that's ever tried to work with unit tests in PHP - there's just not that much support for it. The software is there and waiting to be used, but too many developers just don't take advantage of it.
</p>
<blockquote>
Maybe it took the PHP community a little longer to realize the importance of testing. But now that we know how to build applications that "just work", are fast and scalable, as well as secure, a big topic in the PHP community right now is to implement processes and use techniques that help us assure that the software works correctly throughout the its lifecycle.
</blockquote>
<p>
He points to some <a href="http://www.infoworld.com/article/08/05/05/rails-php_1.html">comments</a> made at a recent panel discussion about PHP and testing, the proliferation of frameworks for the language and the <a href="http://mysqldump.azundris.com/archives/55-phpvikinger.org-Things-that-have-no-name.html">things that have no name</a> that developers use every day to make their code "just work".
</p>]]></description>
      <pubDate>Mon, 12 May 2008 10:28:26 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: Running Tests from The Commandline in CakePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10140</guid>
      <link>http://www.phpdeveloper.org/news/10140</link>
      <description><![CDATA[<p>
New on the Debuggable blog today there's <a href="http://www.debuggable.com/posts/running-tests-from-the-commandline-in-cakephp:4821f908-da38-4987-909a-25c74834cda3">this post</a> from <i>Tim Koschutzki</i> about a new feature he's contributed back to the CakePHP project. It allows you to run tests on the command line without having to worry about loading up a web interface to check your code.
</p>
<blockquote>
It allows you to run all of the following: all core testcases at once, all core test groups, each core test case individually, all application-specific testcases at once, all application-specific test groups and each core test case individually. It also supports plugins, which means you can run plugin cases and groups. 
</blockquote>
<p>
He includes some samples of how it works - a few command line calls and what the output looks like.
</p>]]></description>
      <pubDate>Thu, 08 May 2008 10:27:41 -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[Debuggable Blog: Code Coverage Analysis soon in CakePHP - Test How Well You Test]]></title>
      <guid>http://www.phpdeveloper.org/news/10088</guid>
      <link>http://www.phpdeveloper.org/news/10088</link>
      <description><![CDATA[<p>
In <a href="http://www.debuggable.com/posts/code-coverage-analysis-soon-in-cakephp---test-how-well-you-test:4814f6a0-fe60-4f50-be0b-07194834cda3">a new post</a> to the Debuggable blog, <i>Tim Koschutzki</i> talks some about the work he's been doing on the code coverage analysis for the upcoming CakePHP release:
</p>
<blockquote>
There are several different kinds of criteria to code coverage. The two most important ones are line coverage (or statement coverage as wikipedia puts it) and path coverage. [...] So how is it going to work? Pretty simple actually. Whenever you run a CakePHP test case Cake assembles information in the background about which lines of your subject-under-test are called.
</blockquote>
<p>
He includes <a href="http://www.debuggable.com/posts/code-coverage-analysis-soon-in-cakephp---test-how-well-you-test:4814f6a0-fe60-4f50-be0b-07194834cda3">a few screenshots</a> of the code coverage being run and the end result of the runner with the percent covered.
</p>]]></description>
      <pubDate>Thu, 01 May 2008 11:19:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: ANSI Colors in PHPUnit Output]]></title>
      <guid>http://www.phpdeveloper.org/news/9829</guid>
      <link>http://www.phpdeveloper.org/news/9829</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> <a href="http://sebastian-bergmann.de/archives/761-ANSI-Colors-in-PHPUnit-Output.html">shows off</a> a new feature of the latest PHPUnit release - the addition of ANSI colors to the runner's output.
</p>
<p>
Check out the screenshots <a href="http://www.flickr.com/photos/sebastian_bergmann/2340283723/">here</a> and <a href="http://www.flickr.com/photos/sebastian_bergmann/2340283719/">here</a>.
</p>
<p>
PHPunit is a member of the xUnit family of testing frameworks and provides 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>Thu, 20 Mar 2008 10:26:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: Generating Code from Tests]]></title>
      <guid>http://www.phpdeveloper.org/news/9788</guid>
      <link>http://www.phpdeveloper.org/news/9788</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> has <a href="http://sebastian-bergmann.de/archives/756-Generating-Code-from-Tests.html">posted a quick example</a> of how to use the <a href="http://www.phpunit.de/">PHPUnit</a> unit testing suite for PHP to create code for you (assuming you're using the <a href="http://www.phpunit.de/pocket_guide/3.3/en/test-first-programming.html">test first</a> method of development.
</p>
<p>
His example builds the class off of a set of test for a "BowlingGame" that ends up with roll() and score() methods based off of the naming conventions used in the test:
</p>
<blockquote>
Following the convention that the tests for a class BowlingGame (see below) are written in a class named BowlingGameTest (see above), the test case class' source is searched for variables that reference objects of the BowlingGame class and analyzing what methods are called on these objects.
</blockquote>]]></description>
      <pubDate>Thu, 13 Mar 2008 08:43:50 -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[Zend Developer Zone: Designing Klingon Warships Using Behaviour Driven Development]]></title>
      <guid>http://www.phpdeveloper.org/news/9608</guid>
      <link>http://www.phpdeveloper.org/news/9608</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/3082-Designing-Klingon-Warships-Using-Behaviour-Driven-Development">another new tutorial</a> from <i>Padraic Brady</i> talking about testing your applications (i.e. unit tests). In this new article, he expands on his <a href="http://devzone.zend.com/article/2772-An-Introduction-to-the-Art-of-Unit-Testing-in-PHP">previous one</a> and dives a bit deeper into the behaviour-driven development process.
</p>
<blockquote>
In this article, I introduce a TDD related practice called Behaviour-Driven Development which has been gathering attention for over a year and gaining converts (like me!).
</blockquote>
<p>
He <a href="http://devzone.zend.com/article/3082-Designing-Klingon-Warships-Using-Behaviour-Driven-Development">briefly covers</a> what BDD is and how it can be used to solidify code against issues that might come up down the road (and how it compares to test-driven development). Some sample code/tests are included to give you a better idea of how it all fits together - a set of scenarios for any given "story". True to the title, <i>Padraic</i> writes his tests around the construction of a Klingon Bird of Prey ship. 
</p>]]></description>
      <pubDate>Mon, 11 Feb 2008 15:34:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Elizabeth Smith's Blog: Hey, Code Coverage on Windows!]]></title>
      <guid>http://www.phpdeveloper.org/news/9514</guid>
      <link>http://www.phpdeveloper.org/news/9514</link>
      <description><![CDATA[<p>
<i>Elizabeth Smith</i> has <a href="http://elizabethmariesmith.com/2008/01/28/hey-code-coverage-on-windows/">posted about</a> a new toy she received from the folks at Microsoft that adds in a missing piece of development functionality on Windows - code coverage and testing.
</p>
<blockquote>
So this evening I managed to get <a href="http://phpt.info/">PHPT</a> running my tests (they're just basic .phpt tests but run-tests is..well flakey is a nice description some days) for my winapi php extension wrapped inside a "generic test" for Visual Studio. [...] So what did all this accomplish? I now can run my phpt tests through visual studio and collect code coverage on what they’re testing. Like <a href="http://gcov.php.net/">GCOV</a>, only for windows.
</blockquote>
<p>
She's also included <a href="http://elizabethmariesmith.com/wp-content/uploads/pretty-code-coverage.jpeg">a screenshot</a> of what the interface and results of the testing look like in the latest Visual Studio tool.
</p>]]></description>
      <pubDate>Tue, 29 Jan 2008 09:35:00 -0600</pubDate>
    </item>
  </channel>
</rss>
