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 802 forks source link

PHPUnit_Extensions_Database_DataSet_QueryTable can not be found #700

Open CaporalDead opened 8 years ago

CaporalDead commented 8 years ago

Hi,

I'm getting some trouble while trying to migrate an old zf 1.11 app to 1.12 using composer. Indeed, one of my test case use the Zend_Test_PHPUnit_Db_DataSet_QueryTable class which extends the PHPUnit_Extensions_Database_DataSet_QueryTable but the composer.json file use phpunit 3.7.19 and this class has been deleted since.

Any idea on how to fix this issue ? Thanks.

froschdesign commented 8 years ago

@CaporalDead PHPUnit 3.4 is old and a no longer supported version.

In the past you could use:

"repositories"      : [
    {
        "type" : "pear",
        "url"  : "http://pear.phpunit.de"
    }
],
"require-dev"       : {
    "pear-pear.phpunit.de/PHPUnit" : "3.4.*"
}

But that no longer works. "http://pear.phpunit.de" is gone - 410!

I think, a manually download of an old PHPUnit 3.4 archive could help.

jonsa commented 8 years ago

@CaporalDead If you can update to PHPUnit ^4.x you can include the currently unmaintained phpunit/dbunit project which contains the missing class.

@froschdesign Maybe the composer.json should be updated with a suggests section since some parts of Zend Framework 1 does not work if the right packages are not included manually. E.g. DatabaseTestCase does not work of the above package is not added.