<?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>Mon, 20 May 2013 17:33:08 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Ryan Mauger's Blog: Controller Testing with the FlashMessenger in Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/17685</guid>
      <link>http://www.phpdeveloper.org/news/17685</link>
      <description><![CDATA[<p>
<i>Ryan Mauger</i> has a new post to his blog today looking at doing some <a href="http://www.rmauger.co.uk/2012/03/controller-testing-with-the-flashmessenger-in-zend-framework/">controller testing in a Zend Framework application</a> and some issues he was with the FlashMessenger component.
</p>
<blockquote>
During a recent project, I encountered problems with the flash messenger not playing ball with PHPUnit. The problem, the FlashMessenger using a session namespace, and trying to start the session. Additionally to this problem, how do you test that the flash message is set as you'd expect (or not as the case may be). The answer to both of these problems, lies in the same solution. a Mock Object.
</blockquote>
<p>
He includes the code to mock out the FlashMessenger component and expose the "addMessage" method. In his first test, the assertion is that this method is never called (failure if it is) and in the second, it should only be called once.
</p>]]></description>
      <pubDate>Fri, 16 Mar 2012 11:55:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: PHPUnit 3.5 Upgrading Woes]]></title>
      <guid>http://www.phpdeveloper.org/news/15320</guid>
      <link>http://www.phpdeveloper.org/news/15320</link>
      <description><![CDATA[<p>
If you've been having issues upgrading to the latest version of PHPUnit (v3.5), <i>Sebastian Bergmann</i> might <a href="http://sebastian-bergmann.de/archives/899-PHPUnit-3.5-Upgrading-Woes.html">have the answer</a> to your problems that's related to the PEAR installer and <a href="http://pear.php.net/bugs/bug.php?id=17986">this bug</a>.
</p>
<blockquote>
The new dependencies of the PHPUnit package, such as PHPUnit_MockObject for instance, are installed first. The PHPUnit package itself is installed last. And herein lies the problem: PHPUnit_MockObject installs the new version of MockObject/Generator.php before the PHPUnit package is upgraded. This upgrade deletes the MockObject/Generator.php file as it previously belonged to the PHPUnit package.
</blockquote>
<p>
He includes two complete file listings showing the difference in the structure before and after the upgrade. The PEAR installer is at fault due to a misunderstanding it has about where the MockObject/Generator.php file belongs. The only way to fix this, currently, is to force install the new subpackages instead of just an update - DbUnit, PHPUnit_MockObject and PHPUnit_Selenium. Instructions and a resulting files tree are included so you can insure your install is correct.
</p>]]></description>
      <pubDate>Fri, 22 Oct 2010 07:42:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: PHPUnit Status Update]]></title>
      <guid>http://www.phpdeveloper.org/news/8112</guid>
      <link>http://www.phpdeveloper.org/news/8112</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> has <a href="http://sebastian-bergmann.de/archives/679-PHPUnit-Status-Update.html">posted an update</a> of the status of the PHPUnit project to his blog today including feature additions to PHPUnit 3.1 and ones being added to other branches.
</p>
<blockquote>
<a href="http://sebastian-bergmann.de/archives/671-Travel-Schedule.html">The last weeks have been busy</a>, but now I want to take the time to finally give you an update on the status of <a href="http://www.phpunit.de/">PHPUnit</a>. The <a href="http://www.phpunit.de/roadmap">development of PHPUnit 3.1</a> is progressing nicely, about the only thing missing is finishing the documentation for all the new features
</blockquote>
<p>
Among these new features are things like:
</p>
<ul>
<li>improvements in <a href="http://www.phpunit.de/pocket_guide/3.1/en/mock-objects.html">mock objects</a>
<li>the ability for PHPUnit to write <a href="http://www.phpunit.de/pocket_guide/3.1/en/code-coverage-analysis.html">code coverage</a> information to a <a href="http://www.phpunit.de/wiki/TestDatabase">test database</a>
<li>some fun new <a href="http://en.wikipedia.org/wiki/Template_Method">template methods</a>
<li>and <a href="http://www.phpunit.de/wiki/GSoC2007MutationTesting">mutation testing</a> that's being built on the separate branch
</ul>]]></description>
      <pubDate>Mon, 25 Jun 2007 08:22:00 -0500</pubDate>
    </item>
  </channel>
</rss>
