
1 Aug
2013
1 Aug
'13
6:08 p.m.
Hi Michal,
Hi
Dne Wed, 31 Jul 2013 23:50:33 +0800 adam <adamgsoc2013@gmail.com> napsal(a):
I am writing unit test cases for DBI classes. in the code base: [1], including DBI class: * DBIMysql.class.php * DBIMysqli.class.php
But I have no idea how to test them. two methods: 1. Mock built-in PHP DB client API ( ig: mysql_connect) they call PHP DB client API finally, but I don't know how I can mock this kind of built-in functions
You can use runkit to replace them for testing.
thanks for your suggestion. I should install runkit on my dev box firstly. I will send out pull requests when testing finished on my dev box. thanks Adam