Fixed assert issue for database/testcase.php

Issue cased recursion while user call assert* functions.