Issues

ZF-8809: ZF 1.10 unit tests should all pass.

Description

Ensure all unit tests pass.

  • Run all DB vendor tests (win/*nix 5.3 & 5.2).
  • All platforms ** Custom TestConfiguration.php executes twice
  • *nix ** Fix all 64 bit issues. (see attached file)
  • On windows: ** Zend_Queue_Adapter_Activemq test hangs suite (win32 5.2.11). ** Zend_View overrunes ob buffer (fatal error) ** More Failures attached

h4. Issues By Component:

h5. Zend_Navigation / Zend_View_Helper_Navigation

Consistently reproduced with phpunit AllTests, but not reproduced with phpunit Zend_View_AllTests.


1) Zend_View_Helper_Navigation_BreadcrumbsTest::testTranslationUsingZendTranslate
Zend_Navigation_Exception: Invalid argument: Unable to determine class to instantiate

/Users/ralphschindler/Projects/ZFStandardTrunk/library/Zend/Navigation/Page.php:223
/Users/ralphschindler/Projects/ZFStandardTrunk/library/Zend/Navigation/Container.php:117
/Users/ralphschindler/Projects/ZFStandardTrunk/library/Zend/Navigation/Container.php:164
/Users/ralphschindler/Projects/ZFStandardTrunk/library/Zend/Navigation.php:46
/Users/ralphschindler/Projects/ZFStandardTrunk/tests/Zend/View/Helper/Navigation/TestAbstract.php:100

h5. Zend_OAuth

Failing tests:


Zend_Oauth_Http_RequestTokenTest::testAssembleParametersCorrectlyAggregatesOauthParameters
Zend_Oauth_Http_RequestTokenTest::testAssembleParametersCorrectlyAggregatesOauthParametersIfCallbackUrlMissing
Zend_Oauth_Http_RequestTokenTest::testAssembleParametersCorrectlyAggregatesCustomParameters
Zend_Oauth_Http_AccessTokenTest::testAssembleParametersCorrectlyIgnoresCustomParameters

h5. Zend_Pdf

Should this be an incomplete or skip:


6) Zend_Pdf_ActionTest::testPhpVersionBug
The expected bug exists. Please verify.

/Users/ralphschindler/Projects/ZFStandardTrunk/tests/Zend/Pdf/ActionTest.php:458

h5. Zend_Search_Lucene


7) Zend_Search_Lucene_SearchTest::testSortingResult
Failed asserting that 

Comments

Partial fix for non-5.3 issues. Only was running the MySqli and sqlite tests.

Also include adjustments to the tests because many of the tests were being skipped with 'too many connections', so added in the tearDown closing the DB connection.

Had an issue with: Zend_Db_Table_Pdo_MysqlTest::testTableFetchallCanHandleWhereWithParameritizationCharacters Zend_Db_Statement_Exception: SQLSTATE[HY093]: Invalid parameter number: no parameters were bound but it went away when I started looking for it.

This patch still leaves the error: Zend_Db_Adapter_Pdo_SqliteTest::testAdapterAlternateStatement Zend_Db_Statement_Exception: SQLSTATE[HY000]: General error: 1 no such table: zfbugs

tested on Debian Lenny

Hey Michael, known issue, and I will be working on it. Thanks for the heads up!

View_Helper_Currency tests should now pass on trunk and branch.

I am actually not able to reproduce the other issues on Zend_Date/Zend_Validate. And I am missing some informations to reproduce. Your file for Windows-Tests is also stripped.

Note: Is it possible to output the SVN release where unittests have been made from? Because there is no note and some of the mentioned classes like Zend_Validate_Barcode have been undertaken several changes in the last days.

I will attach my todays result for AllTests on Windows (5.2.11) with default installation and default config file in a few minutes

AllTests for r20372 on WinXP, PHP 5.2.11, default installation & configuration