Hi,
You can do variable initialization on the Setup function, Look the code example here:
>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.
>
https://github.com/adamgsoc2013/phpmyadmin/blob/ed36426b8863645076a3bc6ed6bf88b7de7b6973/test/classes/PMA_TableSearch_test.php#L38
>Thank you
>Regards Supun
>
Thanks,
Adam
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Phpmyadmin-devel mailing list
Phpmyadmin-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel