<?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>Tue, 18 Jun 2013 23:05:09 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 3]]></title>
      <guid>http://www.phpdeveloper.org/news/16782</guid>
      <link>http://www.phpdeveloper.org/news/16782</link>
      <description><![CDATA[<p>
<i>Michelangelo van Dam</i> is back today with the next part of his "Quality Assurance in PHP Projects" series, the <a href="http://www.dragonbe.com/2011/08/quality-assurance-on-php-projects_28.html">third part</a> of his look at <a href="http://phpunit.de">PHPUnit</a>, the popular PHP-based unit testing software.
</p>
<blockquote>
Time for the third part on unit testing with phpunit in my <a href="http://www.dragonbe.com/search/label/qaseries">Quality Assurance on PHP projects</a> series. In <a href="http://www.dragonbe.com/2011/08/quality-assurance-on-php-projects_17.html">part one</a> we started writing unit tests for a simple game of tic-tac-toe. In <a href="http://www.dragonbe.com/2011/08/quality-assurance-on-php-projects_23.html">part two</a> we started converting our unit tests into actual code and moved our general unit test code for grids into a Grid focussed unit test. In this part, we're looking at how we can optimize the tests for our players.
</blockquote>
<p>
He digs deeper into the TicTacToe application and focuses first on the single-player functionality, checking the symbol for the current player (an "X" or "O") and throwing exceptions in the code when things aren't right. He also shows the tests for checking on "more than one player" and "cannot add more than two players" scenarios. Full code for the Player class and tests are included.
</p>]]></description>
      <pubDate>Mon, 29 Aug 2011 09:18:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/16755</guid>
      <link>http://www.phpdeveloper.org/news/16755</link>
      <description><![CDATA[<p>
<i>Michelangelo van Dam</i> has posted the <a href="http://www.dragonbe.com/2011/08/quality-assurance-on-php-projects_23.html">second part of his look at PHPUnit</a> in his "Quality Assurance in PHP Projects" blog post series. This is a continuation from <a href="http://phpdeveloper.org/news/16730">part one</a>.
</p>
<blockquote>
I hope everyone enjoyed my <a href="http://www.dragonbe.com/2011/08/quality-assurance-on-php-projects_17.html">first article</a> on unit testing with <a href="http://phpunit.de/">phpunit</a> where I started writing a few tests that would guide us building our little game of tictactoe. Today I'm going start with turning these tests into working code and adjusting our tests to have a clear separation of responsibility. Since we already know what the code should produce, we only have to work out the details.
</blockquote>
<p>
He picks up where he left off on his "tic-tac-toe" example by defining some of the classes that will be needed to fulfill the tests and a sample test to check the generated grid's contents. He includes the Grid class that will do the job (full code included) and a full test case class that runs his example with checks on testGameGridIsSetAtStart, testGridCanPositionASymbol, testGridHasThreeSymbolsInARow and testGridHasThreeSymbolsInAColumn, some with their own data providers.
</p>]]></description>
      <pubDate>Tue, 23 Aug 2011 08:38:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Knut Urdalen's Blog: Tic Tac Toe with PHP-GTK2]]></title>
      <guid>http://www.phpdeveloper.org/news/6488</guid>
      <link>http://www.phpdeveloper.org/news/6488</link>
      <description><![CDATA[<p>
<i>Knut Urdalen</i> has come back to PHP-GTK2 (since trying it back in the alpha stage) and decided to <a href="http://www.urdalen.com/blog/?p=189">give it a shot</a> by porting over an application and seeing how easy it was.
</p>
<blockquote>
I wanted to see how easy I can take a simple GTK application written in another language and port it to PHP-GTK2. I ended up porting <a href="http://perplex.schmumpf.de/dev/tictactoe/ruby/">this Ruby/Gtk example</a> written by <a href="http://perplex.schmumpf.de/">Daniel Lichtenberger</a> which have some logic, dialogs, events and some graphics.
</blockquote>
<p>
His experience was a pleasant one, finding that most of the code came over easily, if not directly (well, with syntax chnages, of course). There were a few issues with pulling in the graphics, but over all, it went well. If you'd like to check out the source for the game, you can <a href="http://www.urdalen.com/lab/tictactoe/tictactoe-1.0.tar.gz">download it here</a> and (with PHP-GTK2 installed) run it with a simple "php tictactoe.phpw" command.
</p>]]></description>
      <pubDate>Thu, 12 Oct 2006 09:14:00 -0500</pubDate>
    </item>
  </channel>
</rss>
