zendframework / zend-ldap

Ldap component from Zend Framework
BSD 3-Clause "New" or "Revised" License
29 stars 29 forks source link

Set dependency for PHPUnit right #23

Closed heiglandreas closed 8 years ago

heiglandreas commented 8 years ago

PHPUnit needs to use the 4-branch for PHP5.5 and the 5-branch for PHP7. So for testing we have to adapt the requirement to PHPUnit (and possibly other libs as well) to reflect that.

There is a solution to that on https://github.com/zendframework/zend-ldap/pull/21#discussion_r44708832

ThaDafinser commented 8 years ago

@heiglandreas i used this here

I still dont like that kind of dependency, because it can lead to different PHPUnit outputs, or you may get errors very late, because it's a PHPUnit4 problem.

But it works ... :+1:

heiglandreas commented 8 years ago

I don't say I like it :wink:. But currently I've set PHPUnit 5 as requirement and on travis I change it tho PHPUnit 4.* when running in PHP5.5.

That will cause the tests to run on Travis under PHP5.5 but everyone else trying that will have to do some debugging themselves when the unit-tests don't work…

Therefore I Think that's the best solution there is (apart from moving the dependencies to PHP7 only :wink:)

heiglandreas commented 8 years ago

This is fixed with #43

heiglandreas commented 8 years ago

This has been fixed with release 2.7.0