Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

PHPUnit_Extensions_Database_DataSet_QueryTable can not be found #700

Open
CaporalDead opened this issue Jun 3, 2016 · 2 comments
Open

Comments

@CaporalDead
Copy link

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
Copy link
Member

@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
Copy link

jonsa commented Jun 28, 2016

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants