PhpUnit-Plugin Problem after updateing ZS 9.0.1

General discussion on Zend Studio

PhpUnit-Plugin Problem after updateing ZS 9.0.1

Postby sepplkopf on Tue Mar 06, 2012 11:05 pm

Hi there,

after having Problems setting up DatabaseTests with phpunit and Zend (files missing in Plugin) i fixed the issue two month ago. Now i updated the installation and after that phpUnit doesnt work crashing with the following 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 <b>......\Zend\workspaces\DefaultWorkspace\.metadata\.plugins\org.zend.php.framework.resource\resources\ZendFramework-1\library\Zend\Test\PHPUnit\Db\Metadata\Generic.php</b> on line <b>167</

Has anyone stumbled on this Problem? Is there a solution? or is it may be an installation issue on my Side?

Thx in Advance
sepplkopf
 
Posts: 14
Joined: Thu Dec 22, 2011 10:28 pm

Re: PhpUnit-Plugin Problem after updateing ZS 9.0.1

Postby juankuquintana on Sun Apr 29, 2012 3:44 am

Hi, have you been able to solve this issue?, i ran into it.

Thanks
juankuquintana
 
Posts: 1
Joined: Sun Apr 29, 2012 3:43 am

Re: PhpUnit-Plugin Problem after updateing ZS 9.0.1

Postby andresm on Fri May 04, 2012 2:20 pm

I got this problem.

I have Installed PHPUnit 3.6 (on mac using pear)
You have to:
Get the DbUnit 1.0 (i did steps 1 and 2 in order to fix it when running phpunit command from terminal too)
1- Uninstall DbUnit
Code: Select all
sudo pear uninstall phpunit/DbUnit

2- Install DbUnit 1.0
Code: Select all
sudo pear install phpunit/DbUnit-1.0.0

3- Backup Zend Studio DbUnit library folder
Code: Select all
mv [ZendStudioFolder]/Contents/Resources/Java/plugins/com.zend.php.phpunit_9.0.2.201202240955/resources/library/PHPUnit/Extensions/Database [ZendStudioFolder]/Contents/Resources/Java/plugins/com.zend.php.phpunit_9.0.2.201202240955/resources/library/PHPUnit/Extensions/Database_ORIG

4- Copy DbUnit 1.0 to Zend Studio DbUnit library folder
Code: Select all
cp -r /usr/lib/php/PHPUnit/Extensions/Database [ZendStudioFolder]/Contents/Resources/Java/plugins/com.zend.php.phpunit_9.0.2.201202240955/resources/library/PHPUnit/Extensions/


This is for Zend Studio 9.0.2 on mac osx, maybe you have to change some folder names to get it done in 9.0.1 and/or other OS.

The recomended fix would be to downgrade to phpunit 3.5.15 and all it deps but doing that i got some (known) PHPUnit errors.
Steps to downgrade PHPUnit:

http://dustyreagan.com/downgrade-phpunit-3-6-to-3-5-15/

I don't know if it's the correct fix and, till now, i think it is not breaking anything else.
andresm
 
Posts: 4
Joined: Fri May 04, 2012 2:04 pm


Return to Zend Studio

Who is online

Users browsing this forum: No registered users and 2 guests