<?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, 24 May 2013 12:36:06 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[AppBackr Blog: Automated PHP unit testing for lazy coders]]></title>
      <guid>http://www.phpdeveloper.org/news/16664</guid>
      <link>http://www.phpdeveloper.org/news/16664</link>
      <description><![CDATA[<p>
In a recent post from the AppBackr blog they share a solution they've found for running unit tests automatically <a href="http://geeks.appbackr.com/61971101">for lazy coders</a> using a combination of PHPUnit, Watchr and Growl notifications (OS X-only, obviously).
</p>
<blockquote>
Now you could run [your] tests manually after each change by typing 'phpunit <your test folder>', but we were looking for something a little more comfortable. We want to decrease the transactional cost of running the tests as much as possible to make the lives of our engineers more pleasant. Making testing easy is the only way the engineers will run the tests frequently.
</blockquote>
<p>
Instead they opted for <a href="https://github.com/mynyml/watchr">Watchr</a>, a tool that keeps an eye on a list of files looking for a change. When one happens, a process is fired off - in this case a PHPUnit run. To make it even easier to see feedback, they integrated it with <a href="http://growl.info/">Growl</a> to show <a href="http://posterous.com/getfile/files.posterous.com/temp-2011-07-21/aGCnenemtzIzodDbvkeCAuyEHyyepnmCIBwovsrlFohtrgJkehawphtHIpGk/test_succeeded.png.scaled500.png">pass</a> or <a href="http://posterous.com/getfile/files.posterous.com/temp-2011-07-21/digwcGCjjfvoxiHkwFCkkgshJHHBmhejDozyrAgsxsHdeCImhqncdiEJzlIm/test_failed.png.scaled500.png">fail</a> results. He includes the <a href="https://github.com/appbackr/watchr-phpunit-yii-config">source for his Watchr script</a> to help you get started.
</p>]]></description>
      <pubDate>Tue, 02 Aug 2011 10:41:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Raphael Stolt's Blog: Growling PHPUnit's test status]]></title>
      <guid>http://www.phpdeveloper.org/news/14599</guid>
      <link>http://www.phpdeveloper.org/news/14599</link>
      <description><![CDATA[<p>
<i>Raphael Stolt</i> has <a href="http://raphaelstolt.blogspot.com/2010/06/growling-phpunits-test-status.html">put together a guide</a> showing how you can link PHPUnit and its test status to the <a href="http://growl.info/">Growl</a> engine on OS X to share the results in a move visual way (than just watching the test runner).
</p>
<blockquote>
Since I'm using <a href="http://www.phpunit.de/">PHPUnit</a> more and more lately, especially in continuous testing sessions (sprints without hitting the continuous integration server), my dependence on a fast and more visual feedback loop rose. In this post I'll provide an easy solution that meets these requirements by utilizing PHPUnit's test listener feature.
</blockquote>
<p>
He includes the code to attach the PHPUnit install to the Growl service via a custom listener that can give you a status of the tests from your most recent run (complete with color-coded feedback based on the results). With a few changes to the PHPUnit <a href="http://www.phpunit.de/manual/current/en/appendixes.configuration.html">XML config file</a> and link out to a script (stakeout.rb), he shows how to directly interface with Growl and includes a <a href="http://www.flickr.com/photos/raphaelstolt/4665080708/">few</a> <a href="http://www.flickr.com/photos/raphaelstolt/4665080614/">screenshots</a> on what the end result could look like.
</p>]]></description>
      <pubDate>Thu, 03 Jun 2010 11:26:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Daniel Cousineau's Blog: PHP, Mumbles (Growl), and DBus: Sweeet]]></title>
      <guid>http://www.phpdeveloper.org/news/11946</guid>
      <link>http://www.phpdeveloper.org/news/11946</link>
      <description><![CDATA[<p>
<i>Daniel Cousineau</i> has <a href="http://www.toosweettobesour.com/2009/02/13/php-mumbles-growl-and-dbus-sweeet/">a new post</a> today that looks at his process for getting a Growl-like messaging system up and running in Ubuntu by combining <a href="http://www.mumbles-project.org/">Mumbles</a> and PHP (via a DBus API).
</p>
<blockquote>
I decided the best easiest route is to access the internal DBus API, however the forums and other resources on the Mumbles site'¦ well... just plain suck. And by suck I mean tell you that something exists and'¦ thaaats about it.
</blockquote>
<p>
What he did find, thanks to <a href="http://google.com">Google</a>, was a tool called <a href="https://fedorahosted.org/d-feet/">D-Feet</a> to help with debugging and a <a href="http://labs.gree.jp/Top/OpenSource/DBus-en.html">DBus extension</a> for PHP that could add the needed support into his PHP installation. Following a bit of hacking and lots of testing, he was <a href="http://www.toosweettobesour.com/wp-content/uploads/2009/02/mumbles-php.png">mostly successful</a>. The only side effect is an Exception where the extension cannot correctly catch the Notify signal.
</p>]]></description>
      <pubDate>Fri, 13 Feb 2009 10:26:33 -0600</pubDate>
    </item>
  </channel>
</rss>
