PHPUnit offers the possibility to perform tests based in database fixtures. The common way is like described in the PHPUnit documentation.
But what if you just want to have a small and different dataset on every test?
Continue reading “PHPUnit: use different dataset on every test in a testcase”
It is always a pain to create datasets for testing. I know the code should make it possible to test without using the database, but this is not always the case. Phpmyadmin offers a good possibility to create datasets by exporting the needed data from a database. The problem here is that the exported format does not match the format needed for phpunit. After digging a while in the net I found out, that there are converters to do this, but they are for older versions of phpmyadmin. Since version 3.3.0 they changed their xml format.
So I decided to create my own converter:
Continue reading “Convert phpmyadmin to phpunit xml format”
Finally submitted my master thesis. Have a look if you want: Online XML Editor Based On XML Schema
This master thesis introduces a mechanism of mapping XML Schema (XSD) to PHP. In the mapping process PHP classes are automatically generated which include all the functionality defined by the schema. The second achievement is an online syntax-directed editor based on the above defined mapping to friendly create Extensible Markup Language (XML) documents based on the mapped schema. In addition the editor offers several guidance mechanisms to create complex XML documents online.
Stay tuned for more updates soon.