<?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>Tue, 21 May 2013 09:46:23 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[php|architect: Webcast: Phactory]]></title>
      <guid>http://www.phpdeveloper.org/news/16086</guid>
      <link>http://www.phpdeveloper.org/news/16086</link>
      <description><![CDATA[<p>
On php|architect.com today they've posted the recording of one of their webcast series leading to up the <a href="http://tek11.phparch.com">tek11 conference</a> from <i>Chris Kite</i> and <i>Josh Butts</i> <a href="http://www.phparch.com/2011/03/webcast-phactory/">about Phactory</a>.
</p>
<blockquote>
<a href="http://phactory.org/">Phactory</a> is an alternative to using database fixtures in your PHP unit tests. Instead of maintaining a separate XML file of data, you define a blueprint for each table and then create as many different objects as you need in your PHP code. By using a database factory instead of fixtures, your unit tests will be more clear and easier to write. You'll also be able to change the objects you create programmatically instead of being stuck with the same old fixtures.
</blockquote>
<p>
You can watch the video (with slides for the presentation) either through the <a href="http://www.phparch.com/2011/03/webcast-phactory/">in-page player</a> or by <a href="http://mtadata.s3.amazonaws.com/webcasts/20110204-Phactory_for_Unit_Testing.mp4">downloading the file itself</a>.
</p>]]></description>
      <pubDate>Wed, 23 Mar 2011 09:21:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Project: Phactory - A Database Factory for Unit Tests]]></title>
      <guid>http://www.phpdeveloper.org/news/14946</guid>
      <link>http://www.phpdeveloper.org/news/14946</link>
      <description><![CDATA[<p>
<i>Josh Butts</i> pointed out a new tool for those creating unit tests (either in PHPUnit, SimpleTest or any other PHP unit testing framework) that work with databases that replaces fixtures - <a href="http://phactory.org/">Phactory</a>.
</p>
<blockquote>
Phactory is an alternative to using database fixtures in your PHP unit tests. Instead of maintaining a separate XML file of data, you define a blueprint for each table and then create as many different objects as you need in your PHP code. By using a database factory instead of fixtures, your unit tests will be more clear and easier to write. You'll also be able to change the objects you create programmatically instead of being stuck with the same old fixtures. 
</blockquote>
<p>
The tool gives you a light-weight ORM to use in your tests and, once you define a PDO connection, lets you interact with the objects just like they were normal tables. An example is included on <a href="http://phactory.org/">the main page</a> of the site and the code for the project can be found <a href="http://github.com/chriskite/phactory">on github</a>.
</p>]]></description>
      <pubDate>Thu, 12 Aug 2010 08:46:36 -0500</pubDate>
    </item>
  </channel>
</rss>
