db
Export your database schema for a PHPUnit database test case
Saturday, 24. January 2009The PHPUnit database test case allows to create before- and after-states of your database in XML or CSV files. Writing those files can be tedious if you need to describe your complete database schema from scratch and its not a very DRY approach. Fortunately the PHPUnit classes for XML files have methods to persist the database schema. I have written a small shell script for generating the PHPUnit XML schema files from an existing database.
Recent comments
35 weeks 3 days ago
36 weeks 1 day ago
50 weeks 3 days ago