<?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, 04 Jul 2008 16:43:12 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lukas Smith's Blog: Making PHP 5.3 Happen]]></title>
      <guid>http://www.phpdeveloper.org/news/10544</guid>
      <link>http://www.phpdeveloper.org/news/10544</link>
      <description><![CDATA[<p>
<i>Lukas Smith</i> has <a href="http://pooteeweet.org/blog/0/1238#m1238">just become</a> the co-release manager for the much anticipated next stable release in the PHP 5.x series - PHP 5.3.
</p>
<blockquote>
Its quite an honor and a challenge. [...] We hope together we have enough brain cycles to push put what is probably the biggest minor release in the history of PHP. Just take a look at the <a href="http://wiki.php.net/todo/php53">todo list</a> and the <a href="http://wiki.php.net/doc/scratchpad/upgrade/53">scratchpad</a> detailing all the additions.
</blockquote>
<p>
He also <a href="http://marc.info/?l=php-internals&m=121504349407856&w=2">asks for any help</a> they can get to help identify all of the changes for the new release and to do the usual testing against the current CVS version with applications to see if there's any breakage. The more you test now, the less that has to be fixed post-release - so get out there and get testing!
</p>]]></description>
      <pubDate>Fri, 04 Jul 2008 08:47:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Nexen.net: PHP Statistics for June 2008]]></title>
      <guid>http://www.phpdeveloper.org/news/10540</guid>
      <link>http://www.phpdeveloper.org/news/10540</link>
      <description><![CDATA[<p>
<i>Damien Seguy</i> has submitted <a href="http://www.nexen.net/chiffres_cles/phpversion/18519-php_statistics_for_june_2008.php">the latest PHP usage statistics</a> for the results of April 2008.
</p>
<p>
Highlights in this month's edition include:
</p>
<ul>
<li>PHP 5.2.6 is growing up fast, thanks to no PHP 5.3
<li>PHP 5 reaches 38.93% of PHP market share, up 2%
<li>They passed the mark of 30 millions domain tested this month
</ul>
<p>
You can get the full stats (including the numbers and some great graphs) from the Nexen.net website - <a href="http://www.nexen.net/chiffres_cles/phpversion/18519-php_statistics_for_june_2008.php">full stats</a>, <a href="http://www.nexen.net/chiffres_cles/phpversion/18516-php_stats_evolution_for_june_2008.php">evolution stats</a>.
</p>]]></description>
      <pubDate>Thu, 03 Jul 2008 11:14:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPImpact Blog: TDD with Symfony: The first test always fails]]></title>
      <guid>http://www.phpdeveloper.org/news/10528</guid>
      <link>http://www.phpdeveloper.org/news/10528</link>
      <description><![CDATA[<p>
On the PHP::Impact blog, <i>Federico Cargnelutti</i> has <a href="http://phpimpact.wordpress.com/2008/07/02/tdd-with-symfony-te-first-test-always-fails/">posted about</a> test-driven design, specifically with the Symfony framework.
</p>
<blockquote>
Symfony is one of the few PHP frameworks that gives you basic tools for starting to write tests. [...] Symfony also provides an extension of this class called sfTestBrowser, designed especially for functional tests, which has all the abilities of the sfBrowser object plus some smart assert methods.
</blockquote>
<p>
He uses this sfTestBrowser object to run an example test on a same get() call's response. It should match the regular expression of "/This is a temporary page/" but doesn't so it fails. Writing up tests like this for new parts of your application first would be considered test-driven development and the Symfony framework makes that simple.
</p>]]></description>
      <pubDate>Wed, 02 Jul 2008 09:33:26 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: Global Variables and PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/10424</guid>
      <link>http://www.phpdeveloper.org/news/10424</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> has a <a href="http://sebastian-bergmann.de/archives/797-Global-Variables-and-PHPUnit.html">new post</a> today about a feature of the PHPUnit unit testing tool that has the possibility of breaking when objects are introduced - backing up the globals.
</p>
<blockquote>
It is hard to test code that uses singletons. The same is true for code that uses global variables. Typically, the code you want to test is coupled strongly with a global variable and you cannot control its creation. An additional problem is the fact that one test's change to a global variable might break another test.
</blockquote>
<p>
You can disable the backup option if you'd like by setting the $backupGlobals option in your test to false. This lets PHPUnit know that you want to leave the globals (and superglobals) alone during the run.
</p>]]></description>
      <pubDate>Tue, 17 Jun 2008 08:49:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tilllate Blog: Unit testing makes coding more fun]]></title>
      <guid>http://www.phpdeveloper.org/news/10329</guid>
      <link>http://www.phpdeveloper.org/news/10329</link>
      <description><![CDATA[<p>
According to <a href="http://techblog.tilllate.com/2008/06/01/unit-testing-makes-coding-more-fun/">a new post</a> on the tilllate blog today, "unit testing makes coding more fun":
</p>
<blockquote>
<p>
"Unit testing is a test that validates that individual units of source code are working properly", that's what <a href="http://en.wikipedia.org/wiki/Unit_testing">Wikipedia says</a> about unit testing. That's general knowledge.
</p>
<p>
But what motivates me even more than the increased software quality is that it saves me development time. This sounds odd as you might believe that <a href="http://en.wikipedia.org/wiki/Test-driven_development">TDD</a> means writing more code.
</p>
</blockquote>
<p>
A real-life example is included (an internal invoicing system) with the steps they'd follow to test it normally via the browser (slow) or through the automated tests (fast!) 
</p>]]></description>
      <pubDate>Tue, 03 Jun 2008 10:23:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Kimsal's Blog: Forget SEO - what about Test Optimization?]]></title>
      <guid>http://www.phpdeveloper.org/news/10327</guid>
      <link>http://www.phpdeveloper.org/news/10327</link>
      <description><![CDATA[<p>
In a <a href="http://michaelkimsal.com/blog/forget-seo-what-about-test-optimization/">new post</a> today, <i>Michael Kimsal</i> walks through the procoess he followed to try and get the most optimized testing environment he could around a <a href="http://www.wordpress.org">WordPress</a> installation he already has set up.
</p>
<blockquote>
I've recently been working on a project trying to take an existing customized wordpress site and create automated integration tests around parts of it.  I'm using <a href="http://www.phpundercontrol.org/">phpUnderControl</a>, <a href="http://www.phpunit.de/">phpUnit</a>, <a href="http://selenium-rc.openqa.org/">Selenium RC</a>, <a href="http://www.getfirefox.com/">Firefox</a>, <a href="http://en.wikipedia.org/wiki/Xvfb">Xvfb</a> (virtual frame buffer) and...well, I think that's it.
</blockquote>
<p>
He mentions the two issues he came across, both with the WordPress software (the "siteurl" setting and the pathing for the templates). He recommends that application code be portable to avoid problems like these. Applications that can be dropped in anywhere and "just work" can help not only make life easier for the installer but also for the tester.
</p>]]></description>
      <pubDate>Tue, 03 Jun 2008 08:49:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Antony Dovgal's Blog: PHP test coverage exceeded 55%]]></title>
      <guid>http://www.phpdeveloper.org/news/10229</guid>
      <link>http://www.phpdeveloper.org/news/10229</link>
      <description><![CDATA[<p>
As <i>Antony Dovgal</i> <a href="http://daylessday.org/archives/25-PHP-test-coverage-exceeded-55%23.html">points out</a> in a new blog post today, the latest reports on PHP's <a href="http://gcov.php.net/PHP_5_3/lcov_html/">code coverage</a> have jumped up over the 50% mark (to 56.3% at the time of this post).
</p>
<blockquote>
It took us about 2 years to get the last 5% and I believe most of the kudos should go to IBM people, who continue to contribute lots of new tests. I hope that <a href="http://qa.php.net/testfest.php">the Testfest</a> will help us to speed up this process.
</blockquote>
<p>
There are still a lot of items <a href="http://gcov.php.net/PHP_5_3/lcov_html/">in the red</a> that could use some tests, so if you're looking to help out write up some tests or check your area for a <a href="http://qa.php.net/testfest.php">TestFest</a> event to get some help.
</p>]]></description>
      <pubDate>Wed, 21 May 2008 08:47:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stoyan Stefanov's Blog: www vs no-www and cookies]]></title>
      <guid>http://www.phpdeveloper.org/news/10182</guid>
      <link>http://www.phpdeveloper.org/news/10182</link>
      <description><![CDATA[<p>
<i>Stoyan Stefanov</i> has come up against one of the frustrations of web development involving cookies - problems caused by the switch from a "www." in the host to none. He's <a href="http://www.phpied.com/www-vs-no-www-and-cookies/">come up with a test</a> to show you how cookies are set and where you can access them from.
</p>
<blockquote>
One of the implications of following the rule is related to the whole <a href="http://www.sitepoint.com/blogs/2008/02/19/www-or-no-www/">www vs no-www</a> question. Basically you should always use www if you're planning to use any other sub-domains and you want them cookie-free. This is because you have no way to set a cookie only to the top-level domain.
</blockquote>
<p>
His code sets cookies for the ".phpied.com", "phpied.com" and "www.phpied.com" domains. Since the domains without the "www" offer a bit broader range of possible matches, he recommends that if you're ever going to use any kind of subdomain, you'll want to use the more broad cookie to cover it.
</p>]]></description>
      <pubDate>Wed, 14 May 2008 11:18:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Testing PHP with the interactive shell]]></title>
      <guid>http://www.phpdeveloper.org/news/10157</guid>
      <link>http://www.phpdeveloper.org/news/10157</link>
      <description><![CDATA[<p>
<i>Akash Mehta</i> shares a helpful hint in <a href="http://www.developertutorials.com/blog/php/testing-php-with-the-interactive-shell-168/">this new post</a> to the Developer Tutorials Blog today - testing out PHP code via the command line PHP binary.
</p>
<blockquote>
Thankfully, PHP provides the interactive shell, allowing you to test out PHP interactively with immediate feedback. Here's how to take advantage of this mature feature of PHP.
</blockquote>
<p>
With the help of the "-a" flag on the command line, the PHP binary will hand you an environment where you can code PHP and instantly see the results. He does <a href="http://www.developertutorials.com/blog/php/testing-php-with-the-interactive-shell-168/">mention</a> a few quirks that make it different than working with PHP through a web server, namely moving in and out of code blocks and remembering to finish out with a semi-colon when the line is done.
</p>]]></description>
      <pubDate>Mon, 12 May 2008 07:57:34 -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>
  </channel>
</rss>
