Unit tests should run with E_ALL so we can detect all errors. Fix dozens of errors that popped up after enabling all errors.

This commit is contained in:
WineHQ
2006-11-25 17:24:44 +00:00
parent e1333dd7fc
commit b858e2ba53
21 changed files with 193 additions and 131 deletions

View File

@@ -135,7 +135,7 @@ function test_application_getWithRating()
$iItemsPerPage = 50;
$iOffset = 0;
$sRating = 'Bronze';
$aApps=Application::getWithRating($sRating, $iOffset, $iItemsPerPage);
$aApps = Application::getWithRating($sRating, $iOffset, $iItemsPerPage);
$aTest = array();//array to test the uniqueness our query results
while(list($i, $iId) = each($aApps)) //cycle through results returned by getWithRating
{
@@ -249,13 +249,13 @@ function create_and_login_user()
if(!test_application_delete())
echo "test_application_delete() failed!\n";
else
echo "test_application_delete() passed!\n";
echo "test_application_delete() passed\n";
if(!test_application_getWithRating())
echo "test_application_getWithRating() failed!\n";
else
echo "test_application_getWithRating() passed!\n";
echo "test_application_getWithRating() passed\n";
?>