alcohol / iso3166

A PHP library providing ISO 3166-1 data.
https://iso3166.thephpleague.com
MIT License
640 stars 59 forks source link

Test class can be #9

Closed harikt closed 8 years ago

harikt commented 8 years ago

moved outside of src.

It helps composer dumpautoload -o flag I believe. As you are good in it I don't need to tell more on it .

alcohol commented 8 years ago

You are correct, though the difference is only noticable if you perform a --prefer-source install (or install dev-master). The dist release does not include the test file, so an optimized autoload dump will only contain the interface and class.

I'll move it for clarity :-)

harikt commented 8 years ago

@alcohol I am not a fan of removing the tests from vendor folder when installing release.

People want to install using --prefer-source then or dev-master which is really harmful. I have sometimes used certain test classes of other 3rd party libraries to extend my test cases.

I know this topic is debatable, but I prefer tests to be given as part of code on installation. It has nothing to do with download speed or disk space.