<?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 22:15:37 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Test dependencies in PHPUnit 3.4]]></title>
      <guid>http://www.phpdeveloper.org/news/13703</guid>
      <link>http://www.phpdeveloper.org/news/13703</link>
      <description><![CDATA[<p>
On his blog today <i>Sameer Borate</i> has <a href="http://www.codediesel.com/testing/test-dependencies-in-phpunit">posted a method</a> for creating test dependencies in your <a href="http://phpunit.de">PHPUnit</a> tests on your application.
</p>
<blockquote>
PHPUnit 3.4 now supports dependencies between different test methods. It allows you to execute a particular test ONLY IF the test that it depends on executes successfully (using a <a href="http://www.codediesel.com/php/linked-list-in-php/">linked-list class</a>.
</blockquote>
<p>
He starts off with a simple tests and breaks it up into two different pieces - one to test the creation of the list and another to test the linking of the list. By using the "@depends" notation in the comments of the linking test, you can tell PHPUnit to link the two and only pass if both do. He also touches on Producers and Consumers in testing.
</p>]]></description>
      <pubDate>Mon, 21 Dec 2009 08:50:17 -0600</pubDate>
    </item>
  </channel>
</rss>
