FixturesShell - Share your test data

Posted by Felix Geisendörfer, on May 03, 2008 - in PHP & CakePHP » Controllers, Components & Shells

Hey folks,

for some of the projects Tim and I recently got involved with I noticed that I needed a way to share a set of test data with the other people working on the project. The result is a simple shell leveraging CakePHP 1.2's fixtures. Usually those are used for unit testing your Models and Behaviors, but they also do a great job at sharing a common set of data within a project.

So if you're interested to try it, check out the project page and let me know what you think.

-- Felix Geisendörfer aka the_undefined

Print this Post | Digg This | Stumble It | Delicious

3 Comments

Kim Fransman on Jun 07, 2008:

Hi Felix. Tried this out today and got a:
Fatal error: Cannot redeclare class Model in /cake/libs/model/model.php on line 2651

Anything you encountered?

Felix Geisendörfer on Jun 07, 2008:

Kim: You should not get that. Have you created the model for the fixtures you try to create?

Kim Fransman on Jun 10, 2008:

It was one of those stupid mistakes where i had the path to console in my bash_login set to an older version of cake. Seemed strange either way but i got it fixed by just correcting the path!