PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

php|architect: Webcast: Phactory

Note: This article was originally published at PHPDeveloper on 24 March 2011.
PHPDeveloper

On php|architect.com today they've posted the recording of one of their webcast series leading to up the tek11 conference from Chris Kite and Josh Butts about Phactory.

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.

You can watch the video (with slides for the presentation) either through the in-page player or by downloading the file itself.