<?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, 19 Jun 2013 23:35:33 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Web Builder Zone: PHPUnit 3.5: easier asserting and mocking]]></title>
      <guid>http://www.phpdeveloper.org/news/15195</guid>
      <link>http://www.phpdeveloper.org/news/15195</link>
      <description><![CDATA[<p>
On the Web Builder Zone (part of <a href="http://dzone.com">DZone</a>) <i>Giorgio Sironi</i> has <a href="http://css.dzone.com/articles/phpunit-35-easier-asserting">a new article</a> talking about new features in the latest release of <a href="http://phpunit.de">PHPUnit</a> including one of his own introduction - the MockBuilder to make mocking in tests simpler.
</p>
<blockquote>
The official release of PHPUnit 3.5 is now available for PEAR installation, after a long beta period. PHPUnit 3.5 provides many new features such as a bunch of new assertions methods and annotations, and a little but very useful contribution of mine: the MockBuilder. [...] As you may know, the 3.4 Api contains a getMock() method with 7 arguments. Since some of this arguments are booleans, a call to getMock() can get very obscure if you don't memorize the meaning of all the 7 arguments. [...] The Builder creational pattern is a small layer of abstraction over the instantation process, that [...] gives you a clear Api.
</blockquote>
<p>
He includes a few examples of both the "getMock" function call and its "getMockBuilder" relation. He also includes a full sample class that shows off some of the other new improvements to PHPUnit like new assertions on variables and object attributes, the "instanceof" checks and the MockBuilder once again.
</p>]]></description>
      <pubDate>Tue, 28 Sep 2010 08:46:55 -0500</pubDate>
    </item>
  </channel>
</rss>
