symfony-cmf/Testing

DatabaseTestListener broken

ElectricMaxxx opened this issue · 3 comments

hi,

tried to get the testing bundle work with the Listener called in the phpunit.xml(.dist) but got an fatal error even with dev-master. You will see the error message at one of my builds:
https://travis-ci.org/ElectricMaxxx/CmfSeoBundle/jobs/20417357

dbu commented

for the reference:

PHP Fatal error:  Class Symfony\Cmf\Component\Testing\Phpunit\DatabaseTestListener 
contains 1 abstract method and must therefore be declared abstract or implement the remaining 
methods (PHPUnit_Framework_TestListener::addRiskyTest) in /home/travis/build/ElectricMaxxx
/CmfSeoBundle/vendor/symfony-cmf/testing/src/Symfony/Cmf/Component/Testing/Phpunit
/DatabaseTestListener.php on line 217

@dbu thanks :-)

Hmm, I see the problem. The addRiskyTest method was new in PHPunit 4.0.0, while the Test listener was build with PHPunit 3.x. Travis decided to use the PHPunit alpha version (4.1-dev), so we get this error.

This should be updated in dev-master in 5ea9e50