zendframework / zf1

This project reached its end-of-life on 2016-09-28. Contains conversion of ZF1 subversion repo to git, from version 15234 forward, and only containing master and release-1.12 branches and 1.12 tags.
https://framework.zend.com/blog/2016-06-28-zf1-eol.html
BSD 3-Clause "New" or "Revised" License
357 stars 796 forks source link

Zend_Test_PHPUnit_Db_Connection does not implement it's own getRowCount method #707

Open jonsa opened 8 years ago

jonsa commented 8 years ago

PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection::getRowCount() uses PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection::$connection when called. That variable is null since Zend_Test_PHPUnit_Db_Connection overrides the constructor and never calls the parent.

This in turn results in Fatal error: Call to a member function query() on a non-object when calling Zend_Test_PHPUnit_Db_Connection::getRowCount()