sebastianbergmann / dbunit

DbUnit port for PHP/PHPUnit.
https://phpunit.de/
Other
225 stars 186 forks source link

PHP Fatal error: Cannot call constructor #133

Closed ghost closed 8 years ago

ghost commented 10 years ago

Occurs in PHPUnit_Extensions_Database_Constraint_TableIsEqual, line 75 PHPUnit_Extensions_Database_Constraint_DataSetIsEqual, line 75

phpunit version: 3.7.32 dbunit version: dev-master ba82ea6 php version: 5.5.12

hansnilsson commented 10 years ago

We ran into this too, it seems an upstream phpunit version has the necessary __construct but you won't get it with 3.7.32. We solved it by requiring dbunit 1.3.1 in our composer.json.

patagu commented 9 years ago

Thanks! Having the same problem, I downgraded dbunit from 1.3.2 to 1.3.1 and now it works.

phpunit version: 3.7.38 php version: 5.3.3

sebastianbergmann commented 9 years ago

PHPUnit 3.7 is no longer supported.