<?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 17:28:01 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Zumba Engineering Blog: Mocking Singleton PHP classes with PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/18801</guid>
      <link>http://www.phpdeveloper.org/news/18801</link>
      <description><![CDATA[<p>
On the Zumba Engineering blog today <i>Chris Taylor</i> has a new post about <a href="http://engineering.zumba.com/2012/11/26/singleton-class-phpunit-mocking/">mocking in PHPUnit</a>, specifically how to handle those pesky Singleton methods lurking around your codebase.
</p>
<blockquote>
In many of our projects, utilities and vendor classes are implemented with a <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a>. [...] In this post, we'll cover a nice way to inject a PHPUnit mock object for use in testing methods that utilize singleton classes.
</blockquote>
<p>
He starts by introducing mocking and how to use mock classes in PHPUnit with a simple "sayHello" example. Adding on another layer, he creates a "SomeclassMock" class, defining its own "expects" and "cleanup" methods. This class forces the Singleton method to act more like a regular non-static method and "resets" it after each use.
</p>]]></description>
      <pubDate>Mon, 26 Nov 2012 09:51:04 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard Thomas' Blog: ZF please before you go 2.0 gunho please clean out the attic]]></title>
      <guid>http://www.phpdeveloper.org/news/13929</guid>
      <link>http://www.phpdeveloper.org/news/13929</link>
      <description><![CDATA[<p>
<i>Richard Thomas</i> <a href="http://www.phpjack.com/content/zf-please-you-go-20-gunho-please-clean-out-attic">has a suggestion</a> for the Zend Framework development group - clean out the attic before you hit the 2.0 mark.
</p>
<blockquote>
A big focus of 2.0 it seems is going to be performance and cleaning up the structure to make use of php 5.3 features which is great, I have been preaching the need for ZF to start taking performance as a real concern for a while now. On the other hand they have gotten to a certain point that they need to reflect on what they already have and not let the spiderwebs grow to large.
</blockquote>
<p>
<i>Richard</i> points out that the Zend Framework, which has a focus on being a "business-class framework" and having the best to offer, has quite a few parts of it that are older and aren't well maintained. This sort of thing could cause some big problems down the line and could even cause some doubt over the developer's choice of frameworks.
</p>]]></description>
      <pubDate>Thu, 28 Jan 2010 12:20:21 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SDA Asia: Yahoo Helping Zend with PHP 6, says Andi Gutmans]]></title>
      <guid>http://www.phpdeveloper.org/news/5840</guid>
      <link>http://www.phpdeveloper.org/news/5840</link>
      <description><![CDATA[<p>
According to <a href="http://www.sda-asia.com/sda/news/psecom,id,10015,srn,4,nodeid,1,_language,Singapore.html">this post</a> on the SDA Asia site today, <i>Andi Gutmans</i> is quoted as saying that Yahoo is doing their share in helping PHP6 come along that much faster.
</p>
<blockquote>
Yahoo is Helping Zend with PHP 6, says Andi Gutmans co-founder and vice president of technology at Israeli-based company Zend Technologies, in an interview with Stephen Shankland of c|net news. PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.
</blockquote>
<p>
They <a href="http://www.sda-asia.com/sda/news/psecom,id,10015,srn,4,nodeid,1,_language,Singapore.html">mention what PHP6 will be</a> and include a link to the (oldish) <a href="http://php.net/~derick/meeting-notes.html">meeting notes</a> concerning it. Be sure to check out the comments for some interesting questions...
</p>]]></description>
      <pubDate>Fri, 21 Jul 2006 05:33:28 -0500</pubDate>
    </item>
  </channel>
</rss>
