Hi
Dne Mon, 28 May 2012 22:44:36 +0530 yasitha pandithawatta yasitha4@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.