<?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 22:29:38 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Metatesting: Testing Constructors]]></title>
      <guid>http://www.phpdeveloper.org/news/17784</guid>
      <link>http://www.phpdeveloper.org/news/17784</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Chris Hartjes</i>, promoter of all things testing, looks a <a href="http://www.littlehart.net/atthekeyboard/2012/04/05/metatesting-testing-constructors/">a method for testing constructors</a> - an effective way to validate the things that happen when your objects are generated.
</p>
<blockquote>
If you have a PHP application that makes heavy use of objects (which is probably 95% of you reading this) then you will have objects with constructor methods in them. It is also very likely that there is some stuff going on in those constructors. So how do you test things like this?
</blockquote>
<p>
He includes a sample constructor that creates a container, pulls out some configuration values and reassigns them to class properties. He first tests that these properties have been set correctly by mocking out the object and overriding the configuration settings in the (dependency injection) container.
</p>]]></description>
      <pubDate>Fri, 06 Apr 2012 08:28:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Mischook's Blog: Object Oriented PHP Tutorial Updated]]></title>
      <guid>http://www.phpdeveloper.org/news/8539</guid>
      <link>http://www.phpdeveloper.org/news/8539</link>
      <description><![CDATA[<p>
<i>Stefan Mischook</i> has once again <a href="http://www.killerphp.com/articles/object-oriented-php-tutorial-updated/">updated his beginner tutorial</a> to help new developers to PHP get acquainted with working with objects in PHP.
</p>
<blockquote>
I've update my beginners tutorial on <a href="http://www.killerphp.com/tutorials/object-oriented-php/index.php">object oriented PHP</a> adding <a href="http://www.killerphp.com/tutorials/object-oriented-php/php-objects-page-3.php">steps 12-17</a>. I cover two new basic OO concepts in these steps: Constructors and Access modifiers.
</blockquote>
<p>
The fully updated tutorial can be found <a href="http://www.killerphp.com/tutorials/object-oriented-php/index.php">here on Stefan's website</a>.
</p>]]></description>
      <pubDate>Tue, 28 Aug 2007 08:49:00 -0500</pubDate>
    </item>
  </channel>
</rss>
