<?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>Sun, 19 May 2013 17:00:07 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 4]]></title>
      <guid>http://www.phpdeveloper.org/news/16812</guid>
      <link>http://www.phpdeveloper.org/news/16812</link>
      <description><![CDATA[<p>
<i>Michelangelo van Dam</i> has posted the fourth part of his "Quality Assurance in PHP projects" series to his blog today - a continuation of his <a href="http://www.dragonbe.com/2011/09/quality-assurance-on-php-projects.html">emphasis on PHPUnit</a> and testing his sample "Tic-Tac-Toe" game.
</p>
<blockquote>
In parts <a href="http://www.dragonbe.com/2011/08/quality-assurance-on-php-projects_17.html">one</a>, <a href="http://www.dragonbe.com/2011/08/quality-assurance-on-php-projects_23.html">two</a> and <a href="http://www.dragonbe.com/2011/08/quality-assurance-on-php-projects_28.html">three</a> we focussed on writing tests for a game of tic-tac-toe, with in parts two and three we optimized our tests so they focus on the functionality of the individual parts Grid and Player, with a collection class Players to handle Player objects.
</blockquote>
<p>
In this fourth part he focuses on the rules for playing the game and the unit tests to validate the correct flow. He covers one of his tests before, looking at the "can be played" validation for identical symbols. He modifies this to use a provider that gives the test the set of data to work from with varying symbols. He writes additional tests to be sure the game "stops after winning" and that it has a winner/which player is the winner. You can find the full game source (complete with these tests) on <a href="https://github.com/DragonBe/tictactoe">his github account</a>.
</p>]]></description>
      <pubDate>Mon, 05 Sep 2011 08:34:44 -0500</pubDate>
    </item>
    <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[Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/16730</guid>
      <link>http://www.phpdeveloper.org/news/16730</link>
      <description><![CDATA[<p>
<i>Michelangelo van Dam</i> continues his "Quality Assurance in PHP projects" series in his latest post, the first of a few, about <a href="http://www.dragonbe.com/2011/08/quality-assurance-on-php-projects_17.html">using PHPUnit to test your application</a>.
</p>
<blockquote>
Of all tools available for improving quality assurance, there's one tool that is the core tool you have to master: PHPUnit. PHPUnit is a complete testing framework crafted by Sebastian Bergmann (<a href="http://twitter.com/!#/s_bergmann">@s_bergmann</a>), who ported existing xUnit frameworks to PHP. And with this testing framework you're able to test your functionality in an automated way before you push code into production.
</blockquote>
<p>
<i>Michelangelo</i> walks you through the installation (via the PEAR installer), creating a phpunit.xml configuration file and making a basic bootstrapper to define some paths and environments. To make the tests a bit more relevant than just pseudo-test examples, he's created a set of tests based around a <a href="http://en.wikipedia.org/wiki/Tic-tac-toe">tic-tac-toe application</a> in a test-driven design fashion (tests first, then code). In this first part he sets up some of his assertions in the tests, but you'll have to wait until part 2 for the code that will make them pass.
</p>]]></description>
      <pubDate>Wed, 17 Aug 2011 10:02:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPDocumentor feedback]]></title>
      <guid>http://www.phpdeveloper.org/news/16686</guid>
      <link>http://www.phpdeveloper.org/news/16686</link>
      <description><![CDATA[<p>
As a follow up to his <a href="http://phpdeveloper.org/news/16638">previous post</a> about using DocBlock commenting and <a href="http://www.phpdoc.org/">phpDocumentor</a> for automatic project documentation generation, <i>Michelangelo van Dam</i> has posted <a href="http://www.dragonbe.com/2011/08/quality-assurance-on-php-projects.html">a deeper look at DocBlox</a>, one of his previously mentioned alternatives.
</p>
<blockquote>
First of all, thank you all for the enormous feedback I got on my latest article on documentation of code. I got a lot of comments on the usage of <a href="http://www.phpdoc.org/">PHPDocumentor</a>. [...] I have to agree that [there are reasons] valid enough to step away from <a href="http://www.phpdoc.org/">PHPDocumentor</a> as a tool for documentation purposes and look for a better alternative. So I've investigated one tool most people have commented on or tweet-ed/facebook-ed/g+-ed on: <a href="http://www.docblox-project.org/">DocBlox</a>.
</blockquote>
<p>
He touches on the installation of the tool and mentions <a href="http://weierophinney.net/matthew/archives/265-Using-DocBlox.html">this tutorial</a> from <i>Matthew Weier O'Phinney</i> that guided him through the setup and use of DocBlox. He rand a few tests comparing phpDocumentor and DocBlox for the documentation generate and DocBlox came out <a href="http://2.bp.blogspot.com/--WIuSHOm8Mk/Tj7zto62KlI/AAAAAAAACwA/RWlyOg93XiU/s1600/Running+DocBlox.png">on</a> <a href="http://2.bp.blogspot.com/-hfEjzswrpD0/Tj7zuOswYkI/AAAAAAAACwE/FY8GLzZd-1o/s1600/Running+PHPDocumentor.png">top</a> when it came to runtime (and memory usage).
</p>]]></description>
      <pubDate>Mon, 08 Aug 2011 11:42:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPDocumentor]]></title>
      <guid>http://www.phpdeveloper.org/news/16638</guid>
      <link>http://www.phpdeveloper.org/news/16638</link>
      <description><![CDATA[<p>
<i>Michelangelo van Dam</i> has posted the latest in his "quality assurance in PHP projects" series today with a look at something that can make your life and documentation easier - <a href="http://www.dragonbe.com/2011/07/quality-assurance-on-php-projects_26.html">PHPDocumentor</a>.
</p>
<blockquote>
Unfortunately I've come across too many lines of code that were just lines of code, no comments or annotations provided. So, in best cases I could guess the types and parameters, but in many it was too obfuscated. I already talked about usage of a code sniffer like PHP_CodeSniffer in my <a href="http://www.dragonbe.com/2011/07/quality-assurance-on-php-projects_17.html">previous post</a> where you can validate the usage of comments in the code. But forcing developers (using a pre-commit checker) into writing documentation with their code is not really a good thing.
</blockquote>
<p>
He suggests using something like <a href="http://www.phpdoc.org/">PHPDocumetor</a> (there's other PHPDoc parsers including <a href="http://www.docblox-project.org/">DocBlox</a> and <a href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</a> out there) to automatically generate documentation for your code based on its comments, giving your developers easier web-based access to the contents. He includes some sample docblocks for a class/method and gives an example command line call to build docs based on a project. <a href="http://www.youtube.com/watch?v=nPhyATNhnr">A screencast</a> and <a href="http://2.bp.blogspot.com/-dxQeU_Ri27c/Ti8rrVWxAeI/AAAAAAAACv0/JpzPIATbdCI/s1600/Api_Documentation.png">screenshot of the generated site</a> shows the results of the run.
</p>]]></description>
      <pubDate>Wed, 27 Jul 2011 08:51:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHP_CodeSniffer]]></title>
      <guid>http://www.phpdeveloper.org/news/16600</guid>
      <link>http://www.phpdeveloper.org/news/16600</link>
      <description><![CDATA[<p>
<i>Michelangelo van Dam</i> has posted the next part in his "QA in PHP development" series to his blog, <a href="http://www.dragonbe.com/2011/07/quality-assurance-on-php-projects_17.html">a look at PHP_CodeSniffer</a>, a tool that can be used to keep the coding standards of your application in line.
</p>
<blockquote>
<a href="http://pear.php.net/manual/en/package.php.php-codesniffer.php">PHP_CodeSniffer</a> is probably the most convenient tool out there to analyze your source code and to verify it complies to company policies. Although it's debatable why source code should follow strict guidelines, it's only a matter of time before you discover yourself that it pays off to have a code base that appears to be written by one developer.
</blockquote>
<p>
He talks about how it works to keep every brace in the right place and format the same through out all of your files. He also mentions that its standards are flexible and can be modified as you might see fit. He looks at the installation process (both manual and through the PEAR installer) and how to use it to analyze your codebase. He's even included a short screencast <a href="http://www.dragonbe.com/2011/07/quality-assurance-on-php-projects_17.html">in the post</a> so you can see the results first-hand.
</p>]]></description>
      <pubDate>Mon, 18 Jul 2011 09:06:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michelangelo van Dam's Blog: Quality Assurance on PHP projects (and PHPLint)]]></title>
      <guid>http://www.phpdeveloper.org/news/16594</guid>
      <link>http://www.phpdeveloper.org/news/16594</link>
      <description><![CDATA[<p>
<i>Michelangelo van Dam</i> has started a new series of posts on his blog about quality assurance in PHP projects with <a href="http://www.dragonbe.com/2011/07/quality-assurance-on-php-projects_14.html">this introduction</a> and a look at the first tool on his list <a href="http://www.dragonbe.com/2011/07/quality-assurance-on-php-projects.html">PHPLint</a>.
</p>
<blockquote>
Quality Assurance has become an increasing important part of web application development, especially with PHP applications. [...] Luckily there are a lot of tools available that allows you to increase quality of these web applications, and the best part is they are all based on PHP! Let's have a quick look at what tools are interesting to start improving quality assurance on your PHP projects.
</blockquote>
<p>
The <a href="http://www.dragonbe.com/2011/07/quality-assurance-on-php-projects.html">first tool</a>, PHPLint, helps you validate code against syntax errors and is built into the command-line PHP you already have. He describes its use, both on the command-line and in a pre-commit hook on his git repository
</p>
<p>
For more PHP QA-related information, he also points out <a href="http://www.amazon.com/gp/product/0470872497/ref=as_li_tf_tl?ie=UTF8&tag=in2it-20&linkCode=as2&camp=217145&creative=399373&creativeASIN=0470872497">the book</a> from <i>Sebastian Bergmann</i> and <i>Stefan Priebsch</i> as a good reference too.
</p>]]></description>
      <pubDate>Fri, 15 Jul 2011 08:26:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: The German Edition Started Shipping!]]></title>
      <guid>http://www.phpdeveloper.org/news/15257</guid>
      <link>http://www.phpdeveloper.org/news/15257</link>
      <description><![CDATA[<p>
For those of you anxiously awaiting the PHP Quality Assurance book from <i>Sebastian Bergmann</i> and <i>Stefan Priebsch</i>, there's <a href="http://qualityassuranceinphpprojects.com/archives/18-The-German-Edition-Started-Shipping!.html">good news on <i>Sebastian</i>'s blog</a> today (well, for those that speak German).
</p>
<blockquote>
The <a href="http://qualityassuranceinphpprojects.com/pages/german_edition.html">German Edition</a> of the PHP Quality Assurance book started shipping. <a href="http://priebsch.de/">Stefan</a> and I, as well as all our <a href="http://qualityassuranceinphpprojects.com/categories/Case-Studies">contributing authors</a>, are very happy about this.
</blockquote>
<p>
The rest of the post describes the book and the case studies that make it up to give you a good overall view of what can be done to help ensure the quality of your code. It will give you some base knowledge of PHP test applications, shows practical results from testing and talks a bit about the current state of quality assurance testing in the online world.
</p>
<p>
If you're not a German-speaker (or reader, for that matter), keep an eye out for <a href="http://qualityassuranceinphpprojects.com/pages/english_edition.html">the English edition</a> coming in December 2010!
</p>]]></description>
      <pubDate>Mon, 11 Oct 2010 08:36:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kore Nordmann's Blog: PHP quality assurance tools]]></title>
      <guid>http://www.phpdeveloper.org/news/14585</guid>
      <link>http://www.phpdeveloper.org/news/14585</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Kore Nordmann</i> talks about <a href="http://kore-nordmann.de/blog/0100_quality_assurance_tools.html">quality assurance tools</a> they've been using for their development process - PHP_Depend and phpUnderControl.
</p>
<blockquote>
Some of the most important tools for quality assurance in PHP projects are <a href="http://pdepend.org/">PHP_Depend</a> and <a href="http://phpundercontrol.org/">PhpUnderControl</a>. In the future <a href="http://qafoo.com/">Qafoo</a> - passion for software quality will provide support for both.
</blockquote>
<p>
He talks a bit about each tool and how they should be used to find and treat a lot of the issues that could come up in your application development. Since the author of the PHP_Depend tool, <i>Manuel Pichler</i>, works for the company, they'll be supporting it as well as offering services for integrating it into your workflow.
</p>]]></description>
      <pubDate>Tue, 01 Jun 2010 12:45:27 -0500</pubDate>
    </item>
  </channel>
</rss>
