<?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>Wed, 22 May 2013 05:26:08 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Chris Hartjes: 5 Minute TDD]]></title>
      <guid>http://www.phpdeveloper.org/news/18372</guid>
      <link>http://www.phpdeveloper.org/news/18372</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i>, a big proponent of testing (unit and otherwise) in the PHP community has <a href="http://www.littlehart.net/atthekeyboard/2012/08/16/5-minute-tdd/">put together a screencast</a> to show just how easy it can be to get started with TDD (test-driven development) in PHP.
</p>
<blockquote>
I want to talk about test driven development and show you in five minutes how to set up.
</blockquote>
<p>
His example uses a common problem - the <a href="http://c2.com/cgi/wiki?FizzBuzzTest">FizzBuzz test</a> - and shows how to write a simple test to check the output of his "process()" method that it matches his expected results. It's a simple example, but a great (realtime) primer to how the TDD process works.
</p>]]></description>
      <pubDate>Fri, 17 Aug 2012 09:10:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: Runtime Classes. A experiment with PHP and Object Oriented Programming]]></title>
      <guid>http://www.phpdeveloper.org/news/16684</guid>
      <link>http://www.phpdeveloper.org/news/16684</link>
      <description><![CDATA[<p>
<i>Gonzalo Ayuso</i> has put together an experiment related to the current OOP structure of PHP - a test <a href="http://gonzalo123.wordpress.com/2011/08/08/runtime-classes-a-experiment-with-php-and-object-oriented-programming/">working with runtime classes</a>, a structure generated entirely when the script is executed and not predefined in the file.
</p>
<blockquote>
Last week I was thinking about creation of a new type of classes. PHP classes but created dynamically at run time. When this idea was running through my head I read the following <a href="http://dhotson.tumblr.com/post/1167021666/php-object-oriented-programming-reinvented">article</a> and I wanted to write something similar. Warning: Probably that it is something totally useless, but I wanted to create a working prototype (and it was fun to do it).
</blockquote>
<p>
His class is pretty basic - a "Human" object that echoes a "hello world" sort of message via a "hello()" method. He creates the classes inside of different test methods to ensure that his assertions are true. The tests check basic output of the "hello()" method, calling undefined methods, testing inheritance and a test creating and evaluating a dynamic function.
</p>
<p>
For something more complex, he creates a dynamic class that solves the <a href="http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz">FizzBuzz</a> kat, a popular programming puzzle. You can find the full code for this and his other examples <a href="https://github.com/gonzalo123/HClass">on github</a>.
</p>]]></description>
      <pubDate>Mon, 08 Aug 2011 09:17:05 -0500</pubDate>
    </item>
  </channel>
</rss>
