Download the PHP package chriskite/phactory without Composer
On this page you can find all versions of the php package chriskite/phactory. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package phactory
Phactory: PHP Database Object Factory for Unit Testing
What is it?
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.
Phactory was inspired by Factory Girl.
Features
- Define default values for your table rows once with Phactory::define(), then easily create objects in that table with a call to Phactory::create().
- Create associations between your defined tables, and the objects will automatically be associated in the database upon creation.
- Use sequences to create unique values for each successive object you create.
Database Support
- MySQL
- Sqlite
- Postgresql
Language Support
- PHP >= 5.3
Limitations
- Each table must have a single integer primary key for associations to work.
All versions of phactory with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package chriskite/phactory contains the following files
Loading the files please wait ....