[Phpmyadmin-devel] Automated Testing - GSoC 2012

Michal Čihař michal at cihar.com
Tue May 29 09:17:44 CEST 2012


Dne Mon, 28 May 2012 22:44:36 +0530
yasitha pandithawatta <yasitha4 at gmail.com> napsal(a):

> I created test suit for common library and add all the test cases there.

You don't need to do such thing - just run phpunit without parameters
in phpMyAdmin's checkout, it will run all the tests. Check phpunit's
documentation for more details.

> Then the above issue was no longer there.
> But I encounter another issue
> in test/libraries/common/PMA_ajaxResponse_test.php.
> Try to run the test case using following command.
> $ phpunit test/libraries/common/PMA_ajaxResponse_test.php
> The following error was encountered.
> *PHP Fatal error:  Call to undefined function PMA_sanitize() in
> /var/www/phpmyadmin-dev/libraries/Message.class.php on line 585*
> *
> *
> Same error occured in /PMA_cheackParameters_test.php
> This should be an error in the base code.

This is error in the test case - some of them do not include all
required libraries to be run standalone, they only work as part of the
testsuite. It would be great to fix that.

	Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20120529/e9e6f9f5/attachment.sig>

More information about the Developers mailing list