k4200’s notes and thoughts

Programmer side of k4200

PHPUnit 3.6 not supported by ZF 1.11.10

Got the following error when running my 1st db test using PHPUnit and Zend Framework.

PHP Fatal error:  Class Zend_Test_PHPUnit_Db_Metadata_Generic contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (PHPUnit_Extensions_Database_DB_IMetaData::disablePrimaryKeys, PHPUnit_Extensions_Database_DB_IMetaData::enablePrimaryKeys) in /path/to/zf/Zend/Test/PHPUnit/Db/Metadata/Generic.php on line 167

It turned out that Zend Framework (Zend_Test_PHPUnit) doesn't support PHPUnit 3.6. See the comments on an issue here.

My environment: