<?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>Sat, 18 May 2013 08:01:18 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Christer Edvartsen's Blog: Running Multiple Versions of PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/17213</guid>
      <link>http://www.phpdeveloper.org/news/17213</link>
      <description><![CDATA[<p>
<i>Christer Edvartsen</i> has a recent post showing you how to <a href="http://tech.vg.no/2011/11/29/running-multiple-versions-of-phpunit/">get multiple PHPUnit versions installed</a> and working on your application. There's been some issues lately due to some updates in recent PHPUnit versions:
</p>
<blockquote>
The latest version of <a href="https://github.com/sebastianbergmann/phpunit/">PHPUnit</a> (3.6.4 at the time of this writing) does not play well with the <a href="http://framework.zend.com/">Zend Framework</a> extensions (<a href="http://framework.zend.com/manual/en/zend.test.phpunit.html">Zend_Test_PHPUnit</a>). After asking <a href="http://mwop.net/blog">Matthew Weier O'Phinney</a> about this he answered that they had <a href="https://twitter.com/#!/weierophinney/status/141141184411209729">standardized on PHPUnit-3.4 for ZF1</a>. Having just upgraded to the latest version of PHPUnit on our servers we were no longer able to test our Zend Framework applications. One option was to downgrade PHPUnit, but since we were already using some of the new features this was not going to happen.
</blockquote>
<p>
He method uses the "installroot" option that can be passed in to the PHPUnit installation process to point it to someplace other than the default PEAR install location. A small change is needed to the "phpunit" executable to have it correctly set the include path. Then it's just a matter of making a symlink to your "/usr/bin" directory pointing to the specific version.
</p>]]></description>
      <pubDate>Mon, 05 Dec 2011 12:26:18 -0600</pubDate>
    </item>
  </channel>
</rss>
