<?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>Fri, 24 May 2013 13:59:24 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: Fluent Interface in PHPUnit 3.0]]></title>
      <guid>http://www.phpdeveloper.org/news/4696</guid>
      <link>http://www.phpdeveloper.org/news/4696</link>
      <description><![CDATA[A little while back, the topic of "fluent interfaces" came up on several different blogs. Continuing that train of thought, <i>Sebastian Bergmann</i> has posted <a href="http://www.sebastian-bergmann.de/blog/archives/563-Fluent-Interface-in-PHPUnit-3.0.html">this new item</a> over on his blog that highlights some of the "fluent interface" structures that <a href="http://www.sebastian-bergmann.de/blog/archives/553-PHPUnit-3.0.html">PHPUnit 3.0</a> will allow.
<p>
<quote>
<i>
One topic that has made a few appearances (<a href="http://www.mikenaberezny.com/archives/35">#1</a>, <a href="http://paul-m-jones.com/blog/?p=188">#2</a>, <a href="http://andigutmans.blogspot.com/2005/12/fluent-interfaces.html">#3</a>) in <a href="http://www.planet-php.net/">PHP-related blogs</a> lately is that of <a href="http://martinfowler.com/bliki/FluentInterface.html">Fluent Interfaces</a>. A good example of a fluent interface is the API of <a href="http://www.jmock.org/">jMock</a>.
<p>
<a href="http://www.sebastian-bergmann.de/blog/archives/553-PHPUnit-3.0.html">PHPUnit 3.0</a> provides the same fluent interface for configuring its <a href="http://www.phpunit.de/pocket_guide/3.0/en/mock-objects.html">Mock Objects</a> (because <a href="http://www.phpunit.de/">PHPUnit</a>'s implementation of Mock Objects is a port of jMock).
</i>
</quote>
<p>
He <a href="http://www.sebastian-bergmann.de/blog/archives/563-Fluent-Interface-in-PHPUnit-3.0.html">shows a code exmaple</a> of how to get it all working, showing how to create a chain of methods that leads to more readable, "fluent" code...]]></description>
      <pubDate>Fri, 20 Jan 2006 07:07:48 -0600</pubDate>
    </item>
  </channel>
</rss>
