khepin / KhepinYamlFixturesBundle

Easy loading of fixtures defined in YAML files for Symfony2 and Doctrine2
MIT License
58 stars 42 forks source link

Fixed tests and updated code. #59

Closed lenardpalko closed 8 years ago

lenardpalko commented 8 years ago

Some tests were failing because some of the dependecies were updated.

khepin commented 8 years ago

Thanks, I don't have much time right now but I'll try to take a look soon at why Travis tests are not passing.

lenardpalko commented 8 years ago

I've found two issues :

  1. for some reason on PHP 5.4 and PHP 5.5 the mongodb extension was not recognized as installed so composer install have failed => so I've forced the installation of mongodb through pecl as it is done here : https://github.com/doctrine/mongodb-odm/blob/master/.travis.yml
  2. After the first one was fixed it was a strange issue with phpunit not finding a method => I think it is related to the phpunit version installed on travis => to fix this I've forced to run the phpunit from vendor/bin

By fixing the above issues the tests are now passing. When you have time let me know if you have another solution for the above issues.

Thanks

khepin commented 8 years ago

Oh right, I saw that recently. I think the mongodb extension for PHP changed quite a bit. Went from mongo to mongodb or similar. There are 2 successive versions with different names, one of them abandonned.

Thanks for figuring all of that out!