Running unit tests against a test database

49 views
Skip to first unread message

Tzewang Dorje

unread,
Oct 22, 2012, 8:18:58 AM10/22/12
to frap...@googlegroups.com
Hi,

I want to write some unit tests to test my database logic that I have written. I want to run these tests against a test database that I can load fixtures into etc.

I'm trying to find a way to load a different set of database config settings when I bootstrap phpunit. The bootstrap file I am looking at is:

src/frapi/tests/bootstrap.php

I would like to find a way of loading an alternate configurations.xml file, for example testing.xml, when I bootstrap phpunit. Is there any way to do this? Is this something anybody else has tried?

Many thanks in advance,

dan
Reply all
Reply to author
Forward
0 new messages