[Phpmyadmin-devel] writing unit tests to sql.lib.php
Marc Delisle
marc at infomarc.info
Thu Jul 25 20:49:39 CEST 2013
Le 2013-07-25 13:11, Supun Nakandala a écrit :
> Hi,
> I am trying to write unit tests for libraries/sql.lib.php script. I
> tried several times to write successful test cases but I was not
> successful. I think it is because I am missing some variable
> initialization. I tried to find where I am missing but I was not
> successful. I would appreciate if someone can provide me a sample test
> case for a method (for example PMA_getNewDatabase method in sql.lib.php)
> or any reference that I can refer to gain the required knowledge.
Hi Supun,
do you have a branch in your repository where we could see your
attempts? It might be easier for a developer to find the problem.
I assume you have looked at the existing tests to gain some knowledge,
and have read
http://wiki.phpmyadmin.net/pma/Unit_Testing
--
Marc Delisle
http://infomarc.info
More information about the Developers
mailing list