New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Cannot make non abstract method PHPUnit_Framework_TestCase::getDataSet() abstract in class PHPUnit_Extensions_Database_TestCase #2320

Closed
j0k3r opened this Issue Oct 7, 2016 · 1 comment

Comments

2 participants
@j0k3r

j0k3r commented Oct 7, 2016

Travis got updated to PHPUnit 5.6.0 today.
Since then we got only some of our build that fail using that version.

It's usually the same combination: PHP 5.6 & PostgreSQL or SQLite.
It does appear on PHP 5.6 using MySQL and even not PHP 5 or 7

The error is always:

1) Tests\Wallabag\CoreBundle\Command\InstallCommandTest::testRunInstallCommand
PHP Fatal error:  Cannot make non abstract method PHPUnit_Framework_TestCase::getDataSet() abstract in class PHPUnit_Extensions_Database_TestCase in phar:///home/travis/.phpenv/versions/5.6.5/bin/phpunit/dbunit/Extensions/Database/TestCase.php on line 277

Fatal error: Cannot make non abstract method PHPUnit_Framework_TestCase::getDataSet() abstract in class PHPUnit_Extensions_Database_TestCase in phar:///home/travis/.phpenv/versions/5.6.5/bin/phpunit/dbunit/Extensions/Database/TestCase.php on line 277

The test doesn't fail, it display a dot.

You can see the output log here:

Can this be related to something in our code?
Here is the test: https://github.com/wallabag/wallabag/blob/master/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php#L63-L90

@sebastianbergmann

This comment has been minimized.

Show comment
Hide comment
@sebastianbergmann

sebastianbergmann Oct 7, 2016

Owner

This has nothing to do with your code, it's a conflict between PHPUnit and DbUnit.

Owner

sebastianbergmann commented Oct 7, 2016

This has nothing to do with your code, it's a conflict between PHPUnit and DbUnit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment